Re: [linux-safety] [PATCH] PCI: tegra: Use PTR_ERR_OR_ZERO
"Lukas Bulwahn" <[email protected]> Mon, 23 Nov 2020 16:01:59 +0100
| Newsgroups | tech.elisa.lists.linux-safety,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pci,org.kernel.vger.linux-tegra |
|---|---|
| Message-ID | <CAKXUXMxzEBoVwuVFYnKCi004a7ytQfK+B-wjjE8i1J1Fzce6qw@mail.gmail.com> |
On Mon, Nov 23, 2020 at 3:51 PM Sudip Mukherjee <[email protected]> wrote: > > > On 16/11/2020 17:01, Thierry Reding wrote: > > On Mon, Nov 16, 2020 at 04:54:07PM +0000, Sudip Mukherjee wrote: > >> Coccinelle suggested using PTR_ERR_OR_ZERO() and looking at the code, > >> we can use PTR_ERR_OR_ZERO() instead of checking IS_ERR() and then > >> doing 'return 0'. > >> > >> Signed-off-by: Sudip Mukherjee <[email protected]> > >> --- > >> drivers/pci/controller/pci-tegra.c | 4 +--- > >> 1 file changed, 1 insertion(+), 3 deletions(-) > > > > This has been proposed multiple times in the past and Bjorn and I have > > agreed every time that this is not an improvement, so sorry, but NAK. > > Thanks Thierry and Neil. I have now added a blacklist script in our CI > so "PTR_ERR_OR_ZERO" will not be flagged for anything in drivers/pci/* > anymore in our testing. > > Thanks, Sudip. I think that is a good idea to minimize churn on subsystem maintainers from janitors. We can continue to discuss how to share these settings on ignore-rule-X-on-subsystem-Y with other "analysis tool CI maintainers". Lukas -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#190): https://lists.elisa.tech/g/linux-safety/message/190 Mute This Topic: https://lists.elisa.tech/mt/78296400/5278000 Group Owner: [email protected] Unsubscribe: https://lists.elisa.tech/g/linux-safety/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-