hamradio: Delete unnecessary checks before the macro call “dev_kfree_skb”
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 21 Aug 2019 19:48:46 +0000 (21:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Aug 2019 23:22:03 +0000 (16:22 -0700)
commitb7deac31979bd09c69e0e6e064609fad55df35be
treefe8485ecbc691daec727b18ba4d7f8b3b5b0f209
parent038dab7efc38254e151adbbade13b8860055d44a
hamradio: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hamradio/baycom_epp.c
drivers/net/hamradio/hdlcdrv.c