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:
04975f3
)
iwlegacy: return -EINVAL instead of -1
author
Greg Dietsche
<
[email protected]
>
Fri, 3 Jun 2011 02:06:08 +0000
(21:06 -0500)
committer
John W. Linville
<
[email protected]
>
Fri, 3 Jun 2011 19:16:34 +0000
(15:16 -0400)
Cleanup the code to return -EINVAL instead of -1
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 ffda05ca20fd08411d9b900b8bce05b3c3dc77a0..06dcee5c51aaffe04459be55d738adaf98a19084 100644
(file)
--- a/
drivers/net/wireless/iwlegacy/iwl-4965.c
+++ b/
drivers/net/wireless/iwlegacy/iwl-4965.c
@@
-496,7
+496,7
@@
static s32 iwl4965_get_tx_atten_grp(u16 channel)
channel <= CALIB_IWL_TX_ATTEN_GR4_LCH)
return CALIB_CH_GROUP_4;
- return -
1
;
+ return -
EINVAL
;
}
static u32 iwl4965_get_sub_band(const struct iwl_priv *priv, u32 channel)