]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Delete unnecessary checks before the function call "input_free_device"
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 9 Jul 2015 06:08:15 +0000 (08:08 +0200)
committerJiri Kosina <jkosina@suse.com>
Thu, 9 Jul 2015 12:28:14 +0000 (14:28 +0200)
commit170e135b00a89885ed215a3ceb5b19a1732ae5ea
tree86905aada02f1459f22dfb9118eba6802ae9229d
parentf7a80cc44d57cfeddc7a67219a4ea5f6baa4ab97
HID: wacom: Delete unnecessary checks before the function call "input_free_device"

The input_free_device() 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: Jiri Kosina <jkosina@suse.com>
drivers/hid/wacom_sys.c