summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorGreg Dietsche <Gregory.Dietsche@cuw.edu>2011-06-03 04:06:09 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-06-03 21:16:34 +0200
commit5c30c76ee616fffb47cbd9810bfd0a99ce4ddb38 (patch)
tree12d6f9e10dbc01c31ff590609403e20c7ea2dc91 /drivers/net/wireless
parentiwlegacy: return -EINVAL instead of -1 (diff)
downloadlinux-5c30c76ee616fffb47cbd9810bfd0a99ce4ddb38.tar.xz
linux-5c30c76ee616fffb47cbd9810bfd0a99ce4ddb38.zip
iwlegacy: propagate error return value
propogate the return value from iwl4965_get_tx_atten_grp instead of implicitly returning -EINVAL in the error case. Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/iwlegacy/iwl-4965.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlegacy/iwl-4965.c b/drivers/net/wireless/iwlegacy/iwl-4965.c
index 06dcee5c51aa..79e7ce643f71 100644
--- a/drivers/net/wireless/iwlegacy/iwl-4965.c
+++ b/drivers/net/wireless/iwlegacy/iwl-4965.c
@@ -915,7 +915,7 @@ static int iwl4965_fill_txpower_tbl(struct iwl_priv *priv, u8 band, u16 channel,
if (txatten_grp < 0) {
IWL_ERR(priv, "Can't find txatten group for channel %d.\n",
channel);
- return -EINVAL;
+ return txatten_grp;
}
IWL_DEBUG_TXPOWER(priv, "channel %d belongs to txatten group %d\n",