[PATCH 0/2] misc: Fix platform_get_irq's error checking

From
Russell King - ARM Linux <linux@armlinux.org.uk>
Date
2017-11-18 08:17:41
Also in
lkml
Reply to
Arvind Yadav, 2017-11-18
On Sat, Nov 18, 2017 at 11:14:25AM +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.
The failure case is <= 0, not < 0, as IRQ0 is not a valid interrupt.
Please rework your patches for this.

-- 
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync@8.8Mbps down 630kbps up
According to speedtest.net: 8.21Mbps down 510kbps up
Thread (4 messages) 4 messages, 2 authors, last reply 2017-11-18
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help