Skip to content

Commit f3b2836

Browse files
krzkMarc Zyngier
authored andcommitted
irqchip/s3c24xx: Remove unneeded comparison of unsigned long to 0
irq_data->hwirq is unsigned long. This fixes GCC warning: drivers/irqchip/irq-s3c24xx.c: In function 's3c_irqext0_type': drivers/irqchip/irq-s3c24xx.c:253:19: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits] if ((data->hwirq >= 0) && (data->hwirq <= 3)) { ^~ Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
1 parent 4096165 commit f3b2836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/irqchip/irq-s3c24xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ static int s3c_irqext0_type(struct irq_data *data, unsigned int type)
250250
void __iomem *gpcon_reg;
251251
unsigned long gpcon_offset, extint_offset;
252252

253-
if ((data->hwirq >= 0) && (data->hwirq <= 3)) {
253+
if (data->hwirq <= 3) {
254254
gpcon_reg = S3C2410_GPFCON;
255255
extint_reg = S3C24XX_EXTINT0;
256256
gpcon_offset = (data->hwirq) * 2;

0 commit comments

Comments
 (0)