]> git.baikalelectronics.ru Git - kernel.git/commit
net/core/skmsg: Delete an unnecessary check before the function call “consume_skb”
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 22 Aug 2019 16:00:40 +0000 (18:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Aug 2019 23:24:53 +0000 (16:24 -0700)
commit7a10a9e8a23318d572686573ba18cb149646949b
treefd5f084abec72b33b85ab7315436944b09e586c7
parent4d7f44ee800613875650e6fb233e420a3b214cac
net/core/skmsg: Delete an unnecessary check before the function call “consume_skb”

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@users.sourceforge.net>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skmsg.c