rt2x00usb: check USB's request error code in rt2800usb_autorun_detect()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 12 Mar 2015 14:35:45 +0000 (15:35 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 16 Mar 2015 16:06:01 +0000 (18:06 +0200)
commit92d5e2456d39d8593bfb19429f2d83297836ad5c
treedf972b102e89fad6c9736470f1ac5e86b6658dd5
parente4fcfaf802bf75e20c65a501edc5c159e812ebd3
rt2x00usb: check USB's request error code in rt2800usb_autorun_detect()

rt2800usb_autorun_detect() blindly assumes assumes that it worked while
it could have failed. Check the error code here.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rt2x00/rt2800usb.c