mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Acked-by: Lars-Peter Clausen <[email protected]> Signed-off-by: Anton Vorontsov <[email protected]>
This commit is contained in:
parent
2530daa187
commit
ef7906f320
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ static irqreturn_t jz_battery_irq_handler(int irq, void *devid)
|
|||
|
||||
static long jz_battery_read_voltage(struct jz_battery *battery)
|
||||
{
|
||||
unsigned long t;
|
||||
long t;
|
||||
unsigned long val;
|
||||
long voltage;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue