Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp896811pxu; Mon, 23 Nov 2020 06:53:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJz3HQ8buaQUwnpj0VACA7jDt8EVvt6gEkqDWUHJtiRpQPn3Z8q9yUqQg7+haDxtu26G2O+x X-Received: by 2002:a50:d617:: with SMTP id x23mr8174529edi.361.1606143203539; Mon, 23 Nov 2020 06:53:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606143203; cv=none; d=google.com; s=arc-20160816; b=jN3A43dZaz+OhM3tHKOMP/PLa4a2q1VsRwKPtuN+Jp2oWVtN17zCqGuVpvFWZ81d6+ 0oDxtXhFVQzToPq+d5T3vI5lPtvyp+XsikZOQ5EpaQYV6XsvM3KWEcBUGaPWAi3Qb8qD SDPQU2fybiLZa5txwfz3vIXdZOavgWtxxGeQG0+HCb7JTaeaxQRWk7Z5HO8JVh4Frxc2 K5sMd+BWobUDx1EDi31nLJ5/vZ2krkcs+SDDRcaWmcTtNQhlRsPEZmnFeLnSy6H+bTg4 /KxhlbIwQcnnVackP1KIOo3JQ8O6aFXGYfCAvToICQwkhAqjBesEFqQjkB/5RFukhntt RQNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=OrZQ6HpXhQgnrak2XHn25QmKmtJWCNzGsPC9kw5jXIA=; b=0tZZyClb2N9g7UOnD+YiEJ0iitcvsnjERUljq0/QNC4jpKWgetIBnDQad6UANqPV/J pl4MgEaRGytThsMubjqTh6QCWRWxgEgQ75yrHUf1QvlKqYb2HmH/6Aj5hRgJWkCI4cvP BFOQmP4490vsvI+ZYm2puSRDT0raXrWkutvFUF+qJzGoKUtxKB+CNV21UsLwoe2I2Kzd j+KLWIBtumI3J62RaEWK57pzYCK7mQeKVxY/14kS8zAYoylTMeBnsvl+av9N3w+JMRhy fFj4ydDMGnbC4YvBnP9aW9YdAWdEqGRM0ZGag3+N+l5TDqKt+s2brkCzKYIOdjFEwHnf D1yg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d7si6464183ejk.78.2020.11.23.06.53.00; Mon, 23 Nov 2020 06:53:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731823AbgKWOvP (ORCPT + 99 others); Mon, 23 Nov 2020 09:51:15 -0500 Received: from imap2.colo.codethink.co.uk ([78.40.148.184]:38948 "EHLO imap2.colo.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730644AbgKWOvO (ORCPT ); Mon, 23 Nov 2020 09:51:14 -0500 Received: from host-92-5-241-147.as43234.net ([92.5.241.147] helo=[192.168.1.13]) by imap2.colo.codethink.co.uk with esmtpsa (Exim 4.92 #3 (Debian)) id 1khDBN-0001yu-Fh; Mon, 23 Nov 2020 14:51:09 +0000 Subject: Re: [linux-safety] [PATCH] PCI: tegra: Use PTR_ERR_OR_ZERO To: Thierry Reding , Sudip Mukherjee , Neil Armstrong Cc: Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Jonathan Hunter , linux-kernel@vger.kernel.org, linux-safety@lists.elisa.tech, linux-tegra@vger.kernel.org, linux-pci@vger.kernel.org References: <20201116165407.8050-1-sudipm.mukherjee@gmail.com> <20201116170137.GA2587640@ulmo> From: Sudip Mukherjee Message-ID: <0ef6fc37-4e91-68a1-0744-90b4093ce5ba@codethink.co.uk> Date: Mon, 23 Nov 2020 14:51:08 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.2 MIME-Version: 1.0 In-Reply-To: <20201116170137.GA2587640@ulmo> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 >> --- >> 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. -- Regards Sudip