From: andy.shevchenko@gmail.com
To: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Cc: albeu@free.fr, linus.walleij@linaro.org, brgl@bgdev.pl,
linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] gpio: ath79: Add missing check for platform_get_irq
Date: Fri, 2 Jun 2023 04:32:00 +0300 [thread overview]
Message-ID: <ZHlGkM0O0IT1U7Fl@surfacebook> (raw)
In-Reply-To: <20230601085132.12508-1-jiasheng@iscas.ac.cn>
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
next prev parent reply other threads:[~2023-06-02 1:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-01 8:51 [PATCH] gpio: ath79: Add missing check for platform_get_irq Jiasheng Jiang
2023-06-02 1:32 ` andy.shevchenko [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-06-02 3:15 Jiasheng Jiang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZHlGkM0O0IT1U7Fl@surfacebook \
--to=andy.shevchenko@gmail.com \
--cc=albeu@free.fr \
--cc=brgl@bgdev.pl \
--cc=jiasheng@iscas.ac.cn \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).