Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3132048ybi; Sun, 26 May 2019 15:29:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyN6AiiXyIzneK+ZBpQbWylH11A2nAvE6hldknKgna96QwTEe9XTPxwkPa4v+vb0HJE7Z0 X-Received: by 2002:a63:ec02:: with SMTP id j2mr99246814pgh.340.1558909759175; Sun, 26 May 2019 15:29:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558909759; cv=none; d=google.com; s=arc-20160816; b=UsCNhE5cKZrSyElo4JaXfbQZh7UsKlaUZH+4g73xK0EP4HXYX/1wt+Gx286YvqXgBO 5bNx3YEcQm2otosADeJHMor61bYReZ6y8CMm8aoMOWzsZuxAY+X0DYG+39MzDoiXs/5r ye36ic1g2nRis8h0lkCPTKlN/mQI/ASZjjjlAvUXBHSahiJbWNjoBnzMLeYb63FU2LpL lgfJQBpEbWnFiV6SsJawFiKQXZ6TjmINGF2jE7kZ64PiOVk/uCqA7ssG7X5ln1GnicFp +EUEw5RDFVwxcJE/evXASwI2LdgRLUkFpv5SGnVOwQazgM/fO5e5zVAvlKD8P3KQdeDI v5VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:to:subject; bh=+NwEjttYKVYbmrIIer3qTpfgKgVpPSeZQJk9SecSr3I=; b=WfbVLqkxtAgcnvTlCcL5oALjAKd5HL3c/usQT44qFLvEBl8cTjpXsCgD/L3zRJtE6I J0Z/nPa1iATr7UjXQGsbqNDF4ujWF6g1a5PdkauPlPs70a6NTT9KUuyWUf8wFpaoHZuj Wom/q3QHKh1wBIcabZFYMgRINGmakSk3bxHvbC89G4jMeumkuwkC/u7wVMOW601hDooo ZqfCzOMZZC1qYsodW159CpZF5ucYKkw/JDB/p7FWI6YkMpk641kVtBKFoYEiqWfbJdy+ PtQdJ8r6dQ6bJl+jLiEto8uVK+2lL3C1QGcjnshO/kC3Fvji3m30p8qn0isxQGRAYnha PARw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y5si13408940pjv.46.2019.05.26.15.29.04; Sun, 26 May 2019 15:29:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726185AbfEZW1q (ORCPT + 99 others); Sun, 26 May 2019 18:27:46 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:38718 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725863AbfEZW1q (ORCPT ); Sun, 26 May 2019 18:27:46 -0400 Received: from x4db76deb.dyn.telefonica.de ([77.183.109.235] helo=[10.0.95.2]) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1hV1cF-0004F7-V8; Sun, 26 May 2019 23:27:44 +0100 Subject: Re: [PATCH] drm/tegra: fix warning PTR_ERR_OR_ZERO can be used To: Hariprasad Kelam , Thierry Reding , David Airlie , Daniel Vetter , Jonathan Hunter , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190525070353.GA6727@hari-Inspiron-1545> From: Ben Dooks Organization: Codethink Limited. Message-ID: <7446cd38-71c5-284d-8a9a-b5ac6865bf35@codethink.co.uk> Date: Sun, 26 May 2019 23:27:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190525070353.GA6727@hari-Inspiron-1545> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25/05/2019 08:03, Hariprasad Kelam wrote: > fix below warnings reported by coccicheck > > /drivers/gpu/drm/tegra/drm.c:509:1-3: WARNING: PTR_ERR_OR_ZERO can be > used > ./drivers/gpu/drm/tegra/gem.c:419:1-3: WARNING: PTR_ERR_OR_ZERO can be > used I'd say the coccicheck should say "Improvement:" here, it's not something wrong, just code that has a better call available. -- Ben Dooks http://www.codethink.co.uk/ Senior Engineer Codethink - Providing Genius https://www.codethink.co.uk/privacy.html