at76c50x-usb: avoid double usb_put_dev() after downloading internal firmware in at76_...
commit064b32f822afd9a578a4ec6bf754cd61cbe0c324
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 20 Feb 2016 22:30:29 +0000 (21 01:30 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 7 Mar 2016 12:24:06 +0000 (7 14:24 +0200)
tree8e35516045373030ef15e501baaa225a1b87658f
parent8dd37c7cd442411f52b90e8b556d38324450de46
at76c50x-usb: avoid double usb_put_dev() after downloading internal firmware in at76_probe()

There is no need in usb_put_dev() if at76_load_internal_fw() succeed.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/atmel/at76c50x-usb.c