lkml.org 
[lkml]   [2017]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 0/7 v2] net: Fix platform_get_irq's error checking
From
Date
On 12/4/2017 8:48 PM, Arvind Yadav wrote:

> The platform_get_irq() function returns negative number if an error
> occurs, Zero if No irq is found and positive number if irq gets successful.

No, returning 0 is not a failure indication anymore. It used to be but not
any longer...

> platform_get_irq() error checking for only zero is not correct.

[...]

MBR, Sergei

\
 
 \ /
  Last update: 2017-12-05 10:55    [W:0.086 / U:0.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site