USB-IP: Deletion of unnecessary checks before the function call "usb_put_dev"
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 21 Nov 2014 15:33:18 +0000 (16:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Nov 2014 01:23:41 +0000 (17:23 -0800)
commit03f3df817dd3bf988c6d56e10e99b5b4553f5044
tree1466da76af9282f880a2ff8c3452573ecd5de2ab
parent0bfed505447dd5a47e6097a32d216d7df7cf70aa
USB-IP: Deletion of unnecessary checks before the function call "usb_put_dev"

The usb_put_dev() function tests whether its argument is NULL and then
returns immediately. 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: Valentina Manea <valentina.manea.m@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/vhci_hcd.c