Re: [PATCH] net/core/skmsg: Delete an unnecessary check before the function call âconsume_skbâ

From: Song Liu
Date: Thu Aug 22 2019 - 17:13:23 EST


On Thu, Aug 22, 2019 at 10:18 AM Markus Elfring <Markus.Elfring@xxxxxx> wrote:
>
> From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
> Date: Thu, 22 Aug 2019 18:00:40 +0200
>
> The consume_skb() function performs also input parameter validation.
> Thus the test around the call is not needed.
>
> This issue was detected by using the Coccinelle software.
>
> Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>

Acked-by: Song Liu <songliubraving@xxxxxx>