Skip to content

Commit

Permalink
rtlwifi: rtl8192de: Fix W=1 build warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Larry Finger authored and John W. Linville committed Feb 1, 2013
1 parent 0b94834 commit 8925d51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/rtlwifi/rtl8192de/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8925d51

Please sign in to comment.