projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e63818
)
iwlegacy: propagate error return value
author
Greg Dietsche
<
[email protected]
>
Fri, 3 Jun 2011 02:06:09 +0000
(21:06 -0500)
committer
John W. Linville
<
[email protected]
>
Fri, 3 Jun 2011 19:16:34 +0000
(15:16 -0400)
propogate the return value from iwl4965_get_tx_atten_grp instead
of implicitly returning -EINVAL in the error case.
Signed-off-by: Greg Dietsche <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/iwlegacy/iwl-4965.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/iwlegacy/iwl-4965.c
b/drivers/net/wireless/iwlegacy/iwl-4965.c
index 06dcee5c51aaffe04459be55d738adaf98a19084..79e7ce643f71be2b95c3f9ef5322f2ad96aa2b29 100644
(file)
--- 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",