HID: huion: Fail on parameter retrieval errors
authorNikolai Kondrashov <spbnick@gmail.com>
Mon, 11 Aug 2014 17:45:31 +0000 (20:45 +0300)
committerJiri Kosina <jkosina@suse.cz>
Tue, 12 Aug 2014 10:44:58 +0000 (12:44 +0200)
commit657d6dc4197e9bc13522d0ed0e1a4ae7d0d84614
tree0dc75926ec3c4401c84b4d988f263860d6d46f3b
parent172bfe09dc52aef29f9c5c0bd9f77a558120faf4
HID: huion: Fail on parameter retrieval errors

Fail Huion tablet interface enabling and probing, if parameter retrieval
fails. Move the main code path out of the else block accordingly.

This should prevent devices appearing in a half-working state due to
original report descriptor being used, simplifying diagnostics. This
also makes it easier to add cleanup in later commits, as error handling
is simplified.

Signed-off-by: Nikolai Kondrashov <spbnick@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-huion.c