Re: [PATCH 0/3] mfd: Handle platform_get_irq's error checking and return

2017-11-18 Thread Russell King - ARM Linux
On Sat, Nov 18, 2017 at 12:06:30PM +0530, Arvind Yadav wrote: > The platform_get_irq() function returns negative if an error occurs. > zero or positive number on success. platform_get_irq() error checking > for zero is not correct and we must check its return value. The failure case is <= 0, not

Re: [PATCH 0/3] mfd: Handle platform_get_irq's error checking and return

2017-11-18 Thread Russell King - ARM Linux
On Sat, Nov 18, 2017 at 12:06:30PM +0530, Arvind Yadav wrote: > The platform_get_irq() function returns negative if an error occurs. > zero or positive number on success. platform_get_irq() error checking > for zero is not correct and we must check its return value. The failure case is <= 0, not