net: sched: skip an unnecessay check
authorTom Rix <trix@redhat.com>
Mon, 7 Sep 2020 18:04:38 +0000 (11:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Sep 2020 02:34:36 +0000 (19:34 -0700)
commitc1f1f16c4de407fa1924e3aa4ddbc567c0a86095
tree1e1d78dc591be5ee57e66848e0aead6894485a17
parent4349abdb409b04a5ed4ca4d2c1df7ef0cc16f6bd
net: sched: skip an unnecessay check

Reviewing the error handling in tcf_action_init_1()
most of the early handling uses

err_out:
if (cookie) {
kfree(cookie->data);
kfree(cookie);
}

before cookie could ever be set.

So skip the unnecessay check.

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_api.c