HID: wacom: Delete an unnecessary check before kobject_put()
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 6 Nov 2015 17:00:30 +0000 (18:00 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 19 Nov 2015 15:52:31 +0000 (16:52 +0100)
commit27ba1d56e1e150294802f0dca8368abc51a664fb
tree06d77f495f243a08696a69a38a42eb2a9d2dcc90
parent6f1da317ac1df15f442b5fd37be7740c7cb55057
HID: wacom: Delete an unnecessary check before kobject_put()

The kobject_put() 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.cz>
drivers/hid/wacom_sys.c