Re: [PATCH] ethernet: Delete unnecessary checks before the macro call “dev_kfree_skb”

From: David Miller
Date: Thu Aug 22 2019 - 19:23:43 EST


From: Markus Elfring <Markus.Elfring@xxxxxx>
Date: Thu, 22 Aug 2019 20:30:15 +0200

> From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
> Date: Thu, 22 Aug 2019 20:02:56 +0200
>
> The dev_kfree_skb() function performs also input parameter validation.
> Thus the test around the shown calls is not needed.
>
> This issue was detected by using the Coccinelle software.
>
> Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>

Applied.