net: usb: Delete unnecessary checks before the macro call “dev_kfree_skb”
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 21 Aug 2019 20:16:02 +0000 (22:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Aug 2019 23:22:03 +0000 (16:22 -0700)
commit5477fccf9abd7342a987d401fa50c0d93ebd09b9
tree0eae33dad1e739f20ac38cd79b06aebd43d25353
parentb7deac31979bd09c69e0e6e064609fad55df35be
net: usb: 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/usb/lg-vl600.c
drivers/net/usb/rtl8150.c