jz4740-battery: Fix signedness bug
authorAxel Lin <axel.lin@gmail.com>
Thu, 8 Dec 2011 13:05:26 +0000 (21:05 +0800)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Fri, 6 Jan 2012 01:57:17 +0000 (05:57 +0400)
commitef7906f3204280ccaf8cd7ace974b7c0a1393812
tree125e5f8240ae635a3ff5665f8ad488c170de2228
parent2530daa187be3adef2d7cb41bd51f1384e478f2b
jz4740-battery: Fix signedness bug

wait_for_completion_interruptible_timeout() may return negative value.
In this case, checking if (t > 0)  will return true if t is unsigned.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/jz4740-battery.c