[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZHlGkM0O0IT1U7Fl@surfacebook>
Date: Fri, 2 Jun 2023 04:32:00 +0300
From: andy.shevchenko@...il.com
To: Jiasheng Jiang <jiasheng@...as.ac.cn>
Cc: albeu@...e.fr, linus.walleij@...aro.org, brgl@...ev.pl,
linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] gpio: ath79: Add missing check for platform_get_irq
Thu, Jun 01, 2023 at 04:51:32PM +0800, Jiasheng Jiang kirjoitti:
> Add the missing check for platform_get_irq and return error
> if it fails.
> girq->parents[0] = platform_get_irq(pdev, 0);
> + if (girq->parents[0] < 0)
> + return -ENODEV;
Can you elaborate why error code has to be shadowed (overriden)?
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists