Skip to content

Commit

Permalink
iwlegacy: propagate error return value
Browse files Browse the repository at this point in the history
propogate the return value from iwl4965_get_tx_atten_grp instead
of implicitly returning -EINVAL in the error case.

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 8e63818 commit 5c30c76
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 @@ -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",
Expand Down

0 comments on commit 5c30c76

Please sign in to comment.