HID: logitech-hidpp: bail out if wtp_connect fails
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tue, 16 Dec 2014 22:06:01 +0000 (17:06 -0500)
committerJiri Kosina <jkosina@suse.cz>
Wed, 17 Dec 2014 08:08:26 +0000 (09:08 +0100)
commitbf159447537ed234afb569f91f5fd8c54ffa4c36
treedf66b1dbbe170e05933876378310073b94255640
parente529fea919872c6568bbda7873c64ac5d807ee83
HID: logitech-hidpp: bail out if wtp_connect fails

If wtp_connect() fails, that means most of the time that the device has
been disconnected. Subsequent attempts to contact the device will fail
too, so it's simpler to bail out earlier.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-logitech-hidpp.c