summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/iwlegacy/iwl-4965.c
diff options
context:
space:
mode:
authorGreg Dietsche <Gregory.Dietsche@cuw.edu>2011-06-02 21:06:09 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-06-03 15:16:34 -0400
commit5c30c76ee616fffb47cbd9810bfd0a99ce4ddb38 (patch)
tree12d6f9e10dbc01c31ff590609403e20c7ea2dc91 /drivers/net/wireless/iwlegacy/iwl-4965.c
parent8e638188b2b84ef9bb9ccbb87b92dda9d0a77bcb (diff)
downloadlwn-5c30c76ee616fffb47cbd9810bfd0a99ce4ddb38.tar.gz
lwn-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/iwlegacy/iwl-4965.c')
-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",