Skip to contentSkip to conversation

ARM:s3c24xx: beautify code, data->hwirq is unsigned long which is always >= 0

PATCH New Chen Gang 1 participant 1 message Mar 26, 2013

Subsystems (3)
lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/1 ARM:s3c24xx: beautify code, data->hwirq is unsigned long which is always >= 0

data->hwirq is unsigned long which is always >= 0

---
 arch/arm/mach-s3c24xx/irq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-s3c24xx/irq.c +1 -1
index 5c9f8b7..143f57b 100644
@@ -210,7 +210,7 @@ static int s3c_irqext0_type(struct irq_data *data, unsigned int type)
 	void __iomem *gpcon_reg;
 	unsigned long gpcon_offset, extint_offset;
 
-	if ((data->hwirq >= 0) && (data->hwirq <= 3)) {
+	if (data->hwirq <= 3) {
 		gpcon_reg = S3C2410_GPFCON;
 		extint_reg = S3C24XX_EXTINT0;
 		gpcon_offset = (data->hwirq) * 2;
Signature · 1 line
1.7.7.6