From: Dan Carpenter Date: Tue, 30 Oct 2012 18:04:26 +0000 (+0300) Subject: ar5523: make buffer size variable unsigned X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=38141fcfaad34a388e61a7a7e98d521330e049d6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: John W. Linville --- 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];