Commit 8e638188 authored by Greg Dietsche's avatar Greg Dietsche Committed by John W. Linville

iwlegacy: return -EINVAL instead of -1

Cleanup the code to return -EINVAL instead of -1
Signed-off-by: default avatarGreg Dietsche <Gregory.Dietsche@cuw.edu>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 04975f3f
...@@ -496,7 +496,7 @@ static s32 iwl4965_get_tx_atten_grp(u16 channel) ...@@ -496,7 +496,7 @@ static s32 iwl4965_get_tx_atten_grp(u16 channel)
channel <= CALIB_IWL_TX_ATTEN_GR4_LCH) channel <= CALIB_IWL_TX_ATTEN_GR4_LCH)
return CALIB_CH_GROUP_4; return CALIB_CH_GROUP_4;
return -1; return -EINVAL;
} }
static u32 iwl4965_get_sub_band(const struct iwl_priv *priv, u32 channel) static u32 iwl4965_get_sub_band(const struct iwl_priv *priv, u32 channel)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment