]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: OCTEON: fix unreachable code in octeon_irq_init_ciu
authorMenglong Dong <dong.menglong@zte.com.cn>
Mon, 11 Jan 2021 13:27:25 +0000 (05:27 -0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 13 Jan 2021 09:59:32 +0000 (10:59 +0100)
commit7b95d222123df0a6882528fa8910959027e402a9
treeda4e0ddf83415e6b1722923264bbb40a631a7768
parent1bc5be96baa858489ca8868eecdf98867024b563
MIPS: OCTEON: fix unreachable code in octeon_irq_init_ciu

The type of 'r' in octeon_irq_init_ciu is 'unsigned int', so 'r < 0'
can't be true.

Fix this by change the type of 'r' and 'i' from 'unsigned int'
to 'int'. As 'i' won't be negative, this change works.

Fixes: 8267ff4ee537 ("MIPS: Octeon: irq: Alloc desc before configuring IRQ")
Signed-off-by: Menglong Dong <dong.menglong@zte.com.cn>
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/cavium-octeon/octeon-irq.c