ath9k: propagate ieee80211_alloc_hw() failure
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 2 Sep 2009 23:34:57 +0000 (16:34 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Sep 2009 20:31:04 +0000 (16:31 -0400)
commitdb6be53cbaf118fdad5bdca211a19ca5354c9462
tree003f64adcfef4624fa9e691ab450338dd996a4f3
parent5c630ce7e6cb144a29fd5a993363f4928fb4b890
ath9k: propagate ieee80211_alloc_hw() failure

The -ENOMEM was never being passed on failure.
While at it use dev_err() as ahb does upon failure.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/pci.c