Skip to content

Commit

Permalink
drivers/net/wireless/iwlwifi/iwl-3945.c Fix type issue on 64bit
Browse files Browse the repository at this point in the history
Coverity CID: 2265 NEGATIVE_RETURNS

"rate" is of an unsigned type, and the code requires a signed type.
The following patch makes it so.

Signed-off-by: Darren Jenkins <darrenrjenkins@gmailcom>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Darren Jenkins authored and John W. Linville committed Jul 7, 2008
1 parent fcee7a0 commit 0ff1cca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/iwlwifi/iwl-3945.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ static void iwl3945_dbg_report_frame(struct iwl3945_priv *priv,

if (print_summary) {
char *title;
u32 rate;
int rate;

if (hundred)
title = "100Frames";
Expand Down Expand Up @@ -487,7 +487,7 @@ static void iwl3945_dbg_report_frame(struct iwl3945_priv *priv,
* but you can hack it to show more, if you'd like to. */
if (dataframe)
IWL_DEBUG_RX("%s: mhd=0x%04x, dst=0x%02x, "
"len=%u, rssi=%d, chnl=%d, rate=%u, \n",
"len=%u, rssi=%d, chnl=%d, rate=%d, \n",
title, fc, header->addr1[5],
length, rssi, channel, rate);
else {
Expand Down

0 comments on commit 0ff1cca

Please sign in to comment.