commit | ef7906f3204280ccaf8cd7ace974b7c0a1393812 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@gmail.com> | Thu Dec 08 21:05:26 2011 +0800 |
committer | Anton Vorontsov <cbouatmailru@gmail.com> | Fri Jan 06 05:57:17 2012 +0400 |
tree | 125e5f8240ae635a3ff5665f8ad488c170de2228 | |
parent | 2530daa187be3adef2d7cb41bd51f1384e478f2b [diff] |
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>