Re: [PATCH] net: sched: skip an unnecessay check

From: David Miller
Date: Tue Sep 08 2020 - 22:35:02 EST


From: trix@xxxxxxxxxx
Date: Mon, 7 Sep 2020 11:04:38 -0700

> From: Tom Rix <trix@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>

Applied to net-next, thank you.