Re: [PATCH] virt: fsl_hypervisor: Replace NO_IRQ by 0

2022-11-10 Thread Greg Kroah-Hartman
On Thu, Nov 10, 2022 at 01:25:14PM +, Christophe Leroy wrote: > Hi Greg, > > Le 06/10/2022 à 07:27, Christophe Leroy a écrit : > > NO_IRQ is used to check the return of irq_of_parse_and_map(). > > > > On some architecture NO_IRQ is 0, on other architectures it is -1. > > > > irq_of_parse_and

Re: [PATCH] virt: fsl_hypervisor: Replace NO_IRQ by 0

2022-11-10 Thread Christophe Leroy
Hi Greg, Le 06/10/2022 à 07:27, Christophe Leroy a écrit : > NO_IRQ is used to check the return of irq_of_parse_and_map(). > > On some architecture NO_IRQ is 0, on other architectures it is -1. > > irq_of_parse_and_map() returns 0 on error, independent of NO_IRQ. > > So use 0 instead of using N

[PATCH] virt: fsl_hypervisor: Replace NO_IRQ by 0

2022-10-05 Thread Christophe Leroy
NO_IRQ is used to check the return of irq_of_parse_and_map(). On some architecture NO_IRQ is 0, on other architectures it is -1. irq_of_parse_and_map() returns 0 on error, independent of NO_IRQ. So use 0 instead of using NO_IRQ. Signed-off-by: Christophe Leroy --- drivers/virt/fsl_hypervisor.