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)
commit67e123ff0e9a71fcf19f83827d59f73076f5bd1a
tree86905aada02f1459f22dfb9118eba6802ae9229d
parent615322f6ac358f9c94b483d0a16f3f46fcb27b1c
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