Skip to content

Commit

Permalink
ath9k: remove warnings related to signed/unsigned type mismatch
Browse files Browse the repository at this point in the history
CC [M]  drivers/net/wireless/ath/ath9k/recv.o
drivers/net/wireless/ath/ath9k/recv.c: In function `ath_rx_prepare':
drivers/net/wireless/ath/ath9k/recv.c:208: warning: comparison is always true due to limited range of data type
drivers/net/wireless/ath/ath9k/recv.c:220: warning: comparison is always false due to limited range of data type

Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
John W. Linville committed Nov 25, 2009
1 parent efe117a commit 04658fb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/net/wireless/ath/ath9k/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,6 @@ static void ath9k_process_rssi(struct ath_common *common,
ATH_RSSI_EP_MULTIPLIER);
if (rx_stats->rs_rssi < 0)
rx_stats->rs_rssi = 0;
else if (rx_stats->rs_rssi > 127)
rx_stats->rs_rssi = 127;

/* Update Beacon RSSI, this is used by ANI. */
if (ieee80211_is_beacon(fc))
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath9k/hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

#define ATH_DEFAULT_NOISE_FLOOR -95

#define ATH9K_RSSI_BAD 0x80
#define ATH9K_RSSI_BAD -128

/* Register read/write primitives */
#define REG_WRITE(_ah, _reg, _val) \
Expand Down

0 comments on commit 04658fb

Please sign in to comment.