libertas: harden-up exit paths
authorDaniel Drake <dsd@laptop.org>
Mon, 16 Apr 2012 22:53:02 +0000 (23:53 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 17 Apr 2012 18:57:14 +0000 (14:57 -0400)
commit0beecac8abb3af890d470df541142d55343382d6
treed4916beace6595c4f5746244cd844cdaa444589c
parent370803c25dd77332ee4ca97884c3a5e1e1eafbca
libertas: harden-up exit paths

These simple sanity check avoids extra complexity in error paths when
moving to asynchronous firmware loading (which means the device may fail to
init some time after its creation).

Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/main.c