rtc: jz4740: signedness bug
Subsystems (3)
PATCH 1/1 rtc: jz4740: signedness bug
platform_get_irq() can return negatives so the rtc->irq should be signed to handle it.
Signed-off-by Dan Carpenter <[email protected]>
drivers/rtc/rtc-jz4740.c +1 -1
@@ -42,7 +42,7 @@ struct jz4740_rtc {struct rtc_device *rtc; -unsigned int irq; +int irq;spinlock_t lock; };
Quoted 4 lines · Dan Carpenter
platform_get_irq()can return negatives so thertc->irqshould be signed to handle it.Signed-off-by Dan Carpenter <[email protected]>
Thanks.
Quoted 14 lines
drivers/rtc/rtc-jz4740.c +1
-1@@ -42,7 +42,7 @@ struct jz4740_rtc {struct rtc_device *rtc; -unsigned int irq; +int irq;spinlock_t lock; };