mmc: dw_mmc: convert the variable type of irq
PATCH 1/1 mmc: dw_mmc: convert the variable type of irq
Even though platform_get_irq returns error, 'host->irq' always has an unsigned value. Less-than-zero comparison of an unsigned value is never true. Type of 'unsigned int' will be changed for 'int'.
Signed-off-by Seungwon Jeon <[email protected]>
--- include/linux/mmc/dw_mmc.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/mmc/dw_mmc.h +1 -1
@@ -186,7 +186,7 @@ struct dw_mci {struct regulator *vmmc;/* Power regulator */ unsigned long irq_flags;/* IRQ flags */ -unsigned int irq; +int irq; };/* DMA ops for Internal/External DMAC interface */
Signature · 1 line
1.7.0.4
Quoted 9 lines · Seungwon Jeon
Even though
platform_get_irqreturns error, 'host->irq' always has an unsigned value. Less-than-zero comparison of an unsigned value is never true. Type of 'unsigned int' will be changed for 'int'.Signed-off-by Seungwon Jeon <[email protected]>--- include/linux/mmc/dw_mmc.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Acked-by Will Newton <[email protected]>
Hi,
Quoted 6 lines · Will Newton
Quoted 5 lines · Seungwon Jeon
Even though
platform_get_irqreturns error, 'host->irq' always has an unsigned value. Less-than-zero comparison of an unsigned value is never true. Type of 'unsigned int' will be changed for 'int'.
Quoted 6 lines
Quoted 4 lines
Signed-off-by Seungwon Jeon <[email protected]>--- include/linux/mmc/dw_mmc.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)Acked-by Will Newton <[email protected]>
Thanks, pushed to mmc-next for 3.8.
- Chris.
Signature · 2 lines
Chris Ball <[email protected]> <http://printf.net/> One Laptop Per Child