irqchip/qcom: Fix u32 comparison with value less than zero
authorColin Ian King <colin.king@canonical.com>
Fri, 17 Nov 2017 18:35:53 +0000 (18:35 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 23 Nov 2017 19:03:58 +0000 (20:03 +0100)
commite9990d70e8a063a7b894c5cbb99f630a0f41200d
tree47b0be3822a7e6c402faa576a892163b70e8a509
parent0e54705b0e01dcaf3eb2a496bb66d5f05012056b
irqchip/qcom: Fix u32 comparison with value less than zero

The comparison of u32 nregs being less than zero is never true since
nregs is unsigned. Fix this by making nregs a signed integer.

Fixes: f20cc9b00c7b ("irqchip/qcom: Add IRQ combiner driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: kernel-janitors@vger.kernel.org
Cc: Jason Cooper <jason@lakedaemon.net>
Link: https://lkml.kernel.org/r/20171117183553.2739-1-colin.king@canonical.com
drivers/irqchip/qcom-irq-combiner.c