]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (jz4740) fix signedness bug
authorAxel Lin <axel.lin@gmail.com>
Thu, 8 Dec 2011 13:04:12 +0000 (08:04 -0500)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 8 Dec 2011 14:25:18 +0000 (06:25 -0800)
commit082b24ad80d69cb275021d165797cb7451a8d1f7
tree2e186d5a0b9641ff99dc6c03fbf84b3b3f0540b6
parent5611cc4572e889b62a7b4c72a413536bf6a9c416
hwmon: (jz4740) 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>
Cc: stable@kernel.org (3.0+)
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/jz4740-hwmon.c