Skip to content

Commit

Permalink
iwlegacy: return -EINVAL instead of -1
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Dietsche authored and John W. Linville committed Jun 3, 2011
1 parent 04975f3 commit 8e63818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlegacy/iwl-4965.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8e63818

Please sign in to comment.