rtlwifi: rtl8192de: Fix W=1 build warnings
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 1 Feb 2013 16:40:26 +0000 (10:40 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 1 Feb 2013 19:27:26 +0000 (14:27 -0500)
when this driver is built with "make W=1", the following warning is printed:

drivers/net/wireless/rtlwifi/rtl8192de/dm.c:1058:5: warning: comparison is always false due to limited range of data type [-Wtype-limits]

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/rtl8192de/dm.c

index fd8df233ff2299d451c01be3211daf8ed20c28b2..5251fb8a111eee18ab04461c8f1eaed4c357a87d 100644 (file)
@@ -841,9 +841,9 @@ static void rtl92d_dm_txpower_tracking_callback_thermalmeter(
        long ele_a = 0, ele_d, temp_cck, val_x, value32;
        long val_y, ele_c = 0;
        u8 ofdm_index[2];
-       u8 cck_index = 0;
+       s8 cck_index = 0;
        u8 ofdm_index_old[2];
-       u8 cck_index_old = 0;
+       s8 cck_index_old = 0;
        u8 index;
        int i;
        bool is2t = IS_92D_SINGLEPHY(rtlhal->version);