]> git.karo-electronics.de Git - karo-tx-linux.git/commit
HID: fix error condition propagation in hid-sony driver
authorJiri Kosina <jkosina@suse.cz>
Mon, 29 Dec 2008 23:49:59 +0000 (00:49 +0100)
committerJiri Kosina <jkosina@suse.cz>
Sun, 4 Jan 2009 00:01:43 +0000 (01:01 +0100)
commit4dfdc46468a142216b284eea66040f49df3f7191
tree771f8c4abcecd8e7ac80bc61f97318f24f852fd9
parentb8a832b1c0a70531b4bd69a67aa0bf72f6f2dc34
HID: fix error condition propagation in hid-sony driver

sony_set_operational() only propagates return value from
usb_control_msg(), which returns negative on error and number
of transferred bytes otherwise.

Reported-by: Marcin Tolysz <tolysz@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sony.c