diff options
author | Greg Dietsche <Gregory.Dietsche@cuw.edu> | 2011-06-02 22:06:08 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-03 15:16:34 -0400 |
commit | 8e638188b2b84ef9bb9ccbb87b92dda9d0a77bcb (patch) | |
tree | 56e068f5b9cd76b94a3cee7cb2a1c4f36f772173 /drivers/net/wireless | |
parent | 04975f3fc390974059ad06ac4162db7a6668a18d (diff) |
iwlegacy: return -EINVAL instead of -1
Cleanup the code to return -EINVAL instead of -1
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.c | 2 |
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 ffda05ca20fd..06dcee5c51aa 100644 --- 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) | |||
496 | channel <= CALIB_IWL_TX_ATTEN_GR4_LCH) | 496 | channel <= CALIB_IWL_TX_ATTEN_GR4_LCH) |
497 | return CALIB_CH_GROUP_4; | 497 | return CALIB_CH_GROUP_4; |
498 | 498 | ||
499 | return -1; | 499 | return -EINVAL; |
500 | } | 500 | } |
501 | 501 | ||
502 | static u32 iwl4965_get_sub_band(const struct iwl_priv *priv, u32 channel) | 502 | static u32 iwl4965_get_sub_band(const struct iwl_priv *priv, u32 channel) |