Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2571496imu; Mon, 17 Dec 2018 04:24:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/XDt0JFHUuD0DATEQaIsml18DoYDvwzsNbblMtZs517dItDmn1Kno7WTyZ6kTc1OCSV8Sab X-Received: by 2002:a63:4926:: with SMTP id w38mr11467774pga.353.1545049450502; Mon, 17 Dec 2018 04:24:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545049450; cv=none; d=google.com; s=arc-20160816; b=fSQHPkRM+VeGsWjqjUNw68zUmaB1dlMstOahEpC3mdyrCJoySkd8MgVcPpwybYPKSM L/WJi9gTzpi88ZLmKwrni2UkPVuz6x4EHkGixKDd3MCp6lUR2saPctFQLZxrNmkIBMn3 vRLkZvw7M2gUb0Hbeki2wNwsUIafPCoir1ZWKry/EFWImje5sn5L1U0rbiS7YPTSQXm3 vKROWRuEn9n8x5yt2zyXi1FFjlnvyJtd2uAvR9sMJwXTDq/nICAz4gOzQaFNw+kD/9cj n4sSAq3Hu7j/DTneLkMmLrGtDUC94OmaUxu4da0D0MFyz2GCjDnFtvJBDF4pQbq0jXIH NTPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organisation:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EnGNtZDUgqqPJxRu0RM5YGNx66R5bC81HTOvxBuPAQw=; b=mVKX0DDoJYsdF3zgNzy5U3azh6vbFX9onWANCpwt9pw5+ggjuURHHTct9atL3AHqOx KrYbcl2PVC2DAXv7JLgjQsl7A/B4BDc9ydxG2S7Au1Q8Lzexv4D4dE3AXe6uI7/7V5Vg c/C3MRk2b2X9RshNMuwVsR6L1Y2u0GvxV0PrVeRYwwqyHy0e0I+O7UUhRIFX7j2HTiK1 w/qNk5T0hJlI1EBkgEuCiu1lU/cCP6bVv5h/6uFhX5rqCPKMsmXWk+mb0yABbfS+iGK5 44d9IbPRRrWFoecE7f2VlCzKsjCCbidOK0XEvoPopZQbHkKeyc2lc4hFShqDJIFHQy3H bPeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@verge.net.au header.s=mail header.b=ruItiLpS; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7si10687362plg.390.2018.12.17.04.23.55; Mon, 17 Dec 2018 04:24:10 -0800 (PST) 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; dkim=fail header.i=@verge.net.au header.s=mail header.b=ruItiLpS; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732034AbeLQLZ2 (ORCPT + 99 others); Mon, 17 Dec 2018 06:25:28 -0500 Received: from kirsty.vergenet.net ([202.4.237.240]:38859 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726660AbeLQLZ2 (ORCPT ); Mon, 17 Dec 2018 06:25:28 -0500 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 75B2525B781; Mon, 17 Dec 2018 22:25:25 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1545045925; bh=wz60tNHfGGPk+S4hB/ZjOuP/EouotGj47K9eaZPypSE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ruItiLpS4JrppFNcpOsBdyQbQ6UbhjxBnVX9xcv+row1qRdEFNRNoziFUXucV6m3o 0N62yevGP3W00RUSr2CxmmuQoBkiw2lOhc9pfSfbTg4PpZIKU5NlWt/pg4MqIVwInN vqpbkQJyRJntBR72btoeg2fUiCoKIeDHGzd+Vtsw= Received: by reginn.horms.nl (Postfix, from userid 7100) id D441D94048A; Mon, 17 Dec 2018 12:25:23 +0100 (CET) Date: Mon, 17 Dec 2018 12:25:23 +0100 From: Simon Horman To: YueHaibing Cc: laurent.pinchart@ideasonboard.com, kieran.bingham+renesas@ideasonboard.com, airlied@linux.ie, daniel@ffwll.ch, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH -next] drm/shmob: Fix return value check in shmob_drm_probe Message-ID: <20181217112523.gm4hsn47v73gsjck@verge.net.au> References: <20181217091830.32624-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181217091830.32624-1-yuehaibing@huawei.com> Organisation: Horms Solutions BV User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 17, 2018 at 05:18:30PM +0800, YueHaibing wrote: > In case of error, the function devm_ioremap_resource() returns ERR_PTR() > and never returns NULL. The NULL test in the return value check should > be replaced with IS_ERR(). > > Fixes: 8f1597c8f1a5 ("drm: shmobile: Perform initialization/cleanup at probe/remove time") > Signed-off-by: YueHaibing Reviewed-by: Simon Horman