adm80211: return an error if adm8211_alloc_rings() fails
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 7 Dec 2016 11:21:22 +0000 (14:21 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 30 Dec 2016 11:29:21 +0000 (13:29 +0200)
commitc705a6b3aa7804d7bc6660183f51e510c61dc807
treecfda66a539577a237ccc896d51c69f73babcb546
parentae3cf476450674dcba4239f144d310c472a08b5d
adm80211: return an error if adm8211_alloc_rings() fails

We accidentally return success when adm8211_alloc_rings() fails but we
should preserve the error code.

Fixes: cc0b88cf5ecf ("[PATCH] Add adm8211 802.11b wireless driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/admtek/adm8211.c