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)
commitdd016aca28f67603f32c4e666805db519df2120a
treefd5f084abec72b33b85ab7315436944b09e586c7
parent2307f4a517c7dbb26fe0c0513ee0ba9d3239362f
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