git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bfed50
)
USB-IP: Deletion of unnecessary checks before the function call "usb_put_dev"
author
Markus Elfring
<elfring@users.sourceforge.net>
Fri, 21 Nov 2014 15:33:18 +0000
(16:33 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 25 Nov 2014 01:23:41 +0000
(17:23 -0800)
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>
No differences found