HID: hid-lg: Check return values from lg[N]ff_init()
authorMichal Malý <madcatxster@devoid-pointer.net>
Wed, 8 Apr 2015 20:56:45 +0000 (22:56 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 7 May 2015 14:27:09 +0000 (16:27 +0200)
commit2dbf635ea1c0b62a957438d72a162175680a3d4a
treeb6b5c7c86868508af0f9c2fe82d8d4bf6417d569
parent9c2a6bd1133f7eae42b7b4e245d2aafecaf4a082
HID: hid-lg: Check return values from lg[N]ff_init()

Check return values from lg[N]ff_init(). hid-lg did not check return values from
the lg[N]_init() functions, possibly trying to work with a device whose
initialization has failed.

Signed-off-by: Michal Malý <madcatxster@devoid-pointer.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-lg.c