]> err.no Git - linux-2.6/commitdiff
drivers/net/wireless/iwlwifi/iwl-3945.c Fix type issue on 64bit
authorDarren Jenkins <darrenrjenkins@gmail.com>
Wed, 2 Jul 2008 23:41:38 +0000 (09:41 +1000)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 7 Jul 2008 19:29:28 +0000 (15:29 -0400)
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>
drivers/net/wireless/iwlwifi/iwl-3945.c

index f5387a7a76c0c20d4f092104e040ee42af677cdb..55ac850744b343024189ec0db16efc10e0d9aec9 100644 (file)
@@ -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";
@@ -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 {