]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ozwpan: Deletion of unnecessary checks before the function call "oz_free_urb...
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 25 Nov 2014 15:51:08 +0000 (16:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 22:00:22 +0000 (14:00 -0800)
commit3dc68d597a5b812736ec44a38200c3fb53e32ce7
tree5732be94591f3623ce74cd336505e4f222847255
parente91d4adccc4bc4a83ddcfbf8b89c17dd4a9d12a0
staging: ozwpan: Deletion of unnecessary checks before the function call "oz_free_urb_link"

The oz_free_urb_link() 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozhcd.c