summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ar5523/ar5523.h
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-10-30 19:04:26 +0100
committerJohn W. Linville <linville@tuxdriver.com>2012-10-30 21:17:54 +0100
commit38141fcfaad34a388e61a7a7e98d521330e049d6 (patch)
tree37a87c9af011e9e3aee0c4a51072f1e8001294f5 /drivers/net/wireless/ath/ar5523/ar5523.h
parentrtlwifi: rtl8192c: rtl8192ce: rtl8192cu: rtl8192se: rtl8192de: Shorten some v... (diff)
downloadlinux-38141fcfaad34a388e61a7a7e98d521330e049d6.tar.xz
linux-38141fcfaad34a388e61a7a7e98d521330e049d6.zip
ar5523: make buffer size variable unsigned
A negative buffer size doesn't make sense and it breaks this check in ar5523_get_max_rxsz(): if (!ar->rxbufsz || ar->rxbufsz > AR5523_SANE_RXBUFSZ) { ... Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ar5523/ar5523.h')
-rw-r--r--drivers/net/wireless/ath/ar5523/ar5523.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ar5523/ar5523.h b/drivers/net/wireless/ath/ar5523/ar5523.h
index 6086ba3fb543..00c6fd346d48 100644
--- a/drivers/net/wireless/ath/ar5523/ar5523.h
+++ b/drivers/net/wireless/ath/ar5523/ar5523.h
@@ -122,7 +122,7 @@ struct ar5523 {
struct work_struct rx_refill_work;
- int rxbufsz;
+ unsigned int rxbufsz;
u8 serial[16];
struct ieee80211_channel channels[14];