rtlwifi: rtl8821ae: Make sure loop counter is signed on all architectures
authorDavid Müller <d.mueller@elsoft.ch>
Fri, 15 Apr 2016 06:50:25 +0000 (08:50 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 26 Apr 2016 09:13:15 +0000 (12:13 +0300)
commit005a425b24e101d312eca669b96a6b71d75e97fc
treee64f3c208cffccf076a42e9132a7ddb80ce5b063
parent706a527ca32b3bf950754631fa42982c0f1c060b
rtlwifi: rtl8821ae: Make sure loop counter is signed on all architectures

The for-loop condition does not work correctly on architectures where
"char" is unsigned. Fix it by using an "int", which may also result in
more efficient code.

Signed-off-by: David Müller <d.mueller@elsoft.ch>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c