Staging: rtl8712: signedness bug in init
authorDan Carpenter <error27@gmail.com>
Fri, 12 Nov 2010 05:11:13 +0000 (08:11 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Nov 2010 20:25:53 +0000 (12:25 -0800)
commit832855354b5863d141ecfc563e78063978c6f29f
tree4bf9d9552daa9ffc98b3368a95a727b125b0c24f
parentf36d83a8cb7224f45fdfa1129a616dff56479a09
Staging: rtl8712: signedness bug in init

PollingCnt is 20 and that means we loop 20 times and then run the
timeout code.  After the end of the loop PollingCnt should be -1 but
because it's an unsigned char, it's actually 255 and the timeout
code never runs.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8712/usb_halinit.c