Skip to contentSkip to conversation

mmc: dw_mmc: convert the variable type of irq

PATCH In review Seungwon Jeon 3 participants 3 messages Sep 28, 2012 – Oct 23, 2012 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

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'.

---
 include/linux/mmc/dw_mmc.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/mmc/dw_mmc.h +1 -1
index 7c6a113..3141676 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Seungwon Jeon

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'.

---
 include/linux/mmc/dw_mmc.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
#2 lore raw

Hi,

Quoted 6 lines · Will Newton
Quoted 5 lines · Seungwon Jeon

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'.

Quoted 6 lines
Quoted 4 lines
---
 include/linux/mmc/dw_mmc.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Thanks, pushed to mmc-next for 3.8.

- Chris.

Signature · 2 lines
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child