HID: logitech-hidpp: avoid duplicate error handling code in 'hidpp_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 26 Dec 2019 14:54:35 +0000 (15:54 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 13 Jan 2020 12:26:43 +0000 (13:26 +0100)
commit8f2828d737241be558b9d31c6c0465595a014341
tree757f635671a0e6caa619b97f89b594d12b4fd9ad
parentbe281368f29797cf4b318ad890673ce96bb9251e
HID: logitech-hidpp: avoid duplicate error handling code in 'hidpp_probe()'

'hid_hw_stop()' is already in the error handling path when branching to
the 'hid_hw_open_fail' label.
There is no point in calling it twice, so remove one.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-logitech-hidpp.c