irqchip: Use int type to store negative error codes
authorQianfeng Rong <rongqianfeng@vivo.com>
Fri, 29 Aug 2025 13:20:19 +0000 (21:20 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 3 Sep 2025 12:10:30 +0000 (14:10 +0200)
commit40c26230a1bfdf46f93e4136dbb96d093744c80d
tree2645273d2182b04787de181dbf2e78a9271a1572
parent54a1726d2e4c0c7b33f4e5ef35fcc118a4d74ea3
irqchip: Use int type to store negative error codes

Change the 'ret' variable from unsigned int to int to store negative error
codes or zero returned by other functions.

Storing the negative error codes in unsigned type, doesn't cause an issue
at runtime but assigning negative error codes to unsigned type may trigger
a compiler warning when the -Wsign-conversion flag is enabled.

Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/all/20250829132020.82077-1-rongqianfeng@vivo.com
drivers/irqchip/irq-gic-v3.c
drivers/irqchip/irq-nvic.c
drivers/irqchip/irq-renesas-rza1.c