HID: i2c-hid: i2c_hid_get_report may fail
authorBenjamin Tissoires <benjamin.tissoires@gmail.com>
Tue, 4 Dec 2012 15:27:50 +0000 (16:27 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 5 Dec 2012 10:27:54 +0000 (11:27 +0100)
commitc737bcf92ea206d3b5d351890f1ade9e12ad4cbe
treef5e868e36a4faeb9c74ca8a7c03790800d3f4bb9
parent134ebfd86b9353a3d98f9f4e93b4e79824a4b49a
HID: i2c-hid: i2c_hid_get_report may fail

If i2c_hid_get_report fails, exit i2c_hid_init_report.
The printk log is already called by i2c_hid_get_report, so no need
to add some more printks.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Reviewed-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/i2c-hid/i2c-hid.c