Skip to content
Commit 7b490a8a authored by Menglong Dong's avatar Menglong Dong Committed by Thomas Bogendoerfer
Browse files

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: 99fbc70f

 ("MIPS: Octeon: irq: Alloc desc before configuring IRQ")
Signed-off-by: default avatarMenglong Dong <dong.menglong@zte.com.cn>
Reviewed-by: default avatarAlexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent 69e97683
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment