rtl8xxxu: Fix error handling if rtl8xxxu_init_device() fails
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 19 Aug 2016 21:46:25 +0000 (17:46 -0400)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 3 Sep 2016 16:57:10 +0000 (19:57 +0300)
commitdeb6176e561324884652dd6a49a862bd8b152959
treec87a9645ae9c4f1fbc525f14c736eb08351b3036
parent76a8e07d49b65294ed006ff1e37fa152a1bfd230
rtl8xxxu: Fix error handling if rtl8xxxu_init_device() fails

For some reason we lost the code bailing if rtl8xxxu_init_device()
returned an error.

This catches the error and also cleans up the error handling.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c