can: Delete unnecessary checks before the macro call “dev_kfree_skb”
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 21 Aug 2019 19:16:15 +0000 (21:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Aug 2019 23:22:03 +0000 (16:22 -0700)
commit038dab7efc38254e151adbbade13b8860055d44a
treeec6d2700641b5b77bb54fcc15bb4d37bb8ae4d1f
parent0f817a5eb9e33cec5baf9dc265bdf240b03cf51b
can: Delete unnecessary checks before the macro call “dev_kfree_skb”

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@users.sourceforge.net>
Acked-by: Sean Nyekjaer <sean@geanix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/spi/hi311x.c
drivers/net/can/spi/mcp251x.c