Received: by 10.223.176.5 with SMTP id f5csp1086540wra; Wed, 7 Feb 2018 12:25:24 -0800 (PST) X-Google-Smtp-Source: AH8x224mHO9GJHZHDoJQfW6Isht5bGIV8pOn4zanDLsoCppvlqVUiT3l/94vQmkRK27RDDLZJea+ X-Received: by 10.99.122.93 with SMTP id j29mr5847883pgn.351.1518035124462; Wed, 07 Feb 2018 12:25:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518035124; cv=none; d=google.com; s=arc-20160816; b=fRLunFptaL9EgsM4FCpswzJ8UOVQAzcxjEvsaa7sWSPPuvxJuVhJnjWHt3RXNnNZHQ cgYlnTixiafopZBalqWTVb/SYLNsVtkAwtey7PQ6+vLhUtHVcevjtu1znwnn155U2NLS ksbshlVFAL8F33WDqxAOBDvZqcRYjqRsbAWC3gMs6Ah/YRXEcRWZ6iq/CtpkPoQLj8S+ RlLCcjfZKK+xCsvULKxba9vh4SwPKASpuRlibO4g+ZByXhlc40P8/t6ksglwdfV4suG3 usLdk6eH5bgywn6gt/bXL25NpL4+zIkxIt4jUgUTjS7aqJoJtBAHGJpdn1EfI0W0dQk1 YSDw== 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:mime-version:user-agent:date:message-id:subject :from:cc:to:arc-authentication-results; bh=jUBH0AQ3QmgcSybxHPAf3JtjyFIkbRRl2eNq/2ufQ2o=; b=c6jp8462KJcx3h0SLfSVtPbar9U7nRW0Xo9PyC2xGlhBdbCKSENUVg2bDMuhX+cHd1 ZULuTBpootPwXT/MBQOFmK/qv7Y1JI5oyoERJMtArb7rimPEBZgfhaabFHiSdzstOmnk kcw9jus/5m6ISWvH4KQOYXh58YwkacOX5d8pZs3Wnv3TVQbIwdDONJ0hwDI6ZsmIjcX1 IWEN1WzzDb0oUqmkIWWgmGwh0tNmVPYr5yR1kWto6HPk5e5JsgNsgetVfsLrR2ZmG8tl U/k3fnnCGVSpC9z1m3fIYQovKd4nWBB68h8j1eB34YbFggw7G55vgaVPGNpJQZoOV+p8 cHdg== 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=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z6-v6si1568093plo.200.2018.02.07.12.25.10; Wed, 07 Feb 2018 12:25:24 -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; 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=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754572AbeBGUX6 (ORCPT + 99 others); Wed, 7 Feb 2018 15:23:58 -0500 Received: from mout.web.de ([212.227.15.14]:57903 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754087AbeBGUX4 (ORCPT ); Wed, 7 Feb 2018 15:23:56 -0500 Received: from [192.168.1.2] ([85.183.226.68]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LmhQx-1fI27v1xuF-00aIOZ; Wed, 07 Feb 2018 21:23:44 +0100 To: linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org, David Airlie , Jonathan Hunter , Thierry Reding Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] drm/tegra/fb: Delete an error message for a failed memory allocation in tegra_fbdev_create() Message-ID: <0704416a-23f7-3ce3-2bd2-d6a8c106f10d@users.sourceforge.net> Date: Wed, 7 Feb 2018 21:23:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:bLO10b90k9Og9SRgy9jFlDiqRVp7JR5TNPyyxj7XhbPLlvr9bX2 848+LGrZ6z3NDnEoDKvcMSUzT8giqkvdcJlm2vCAoWD47YqopeX/yFFFUHP80RVn1SD01bc ttE/A8/j9XW8VhBDQtf18WcPh0vX8MleD3nfv3pWPRzZ+uPJD795auery/LAY7Xip/mDMh6 UdHjhVmRklEnaMK7Inkvw== X-UI-Out-Filterresults: notjunk:1;V01:K0:rIa91ndW1HY=:SVdH5zuRtRblPDUPXlVYyL /uGzXFRlL1gFGOrPCPrtRYgzGo8mw4RUe3VX2XjKifOSSyBB//jBjY8vvan21rJ7/wiORGKf6 5Jedl2UEmm0N3qs/i9sLEVf55NsvFGx8t01s6WPX45GgRBEs9WrBWgYLNytEqUW42jAb0Si/o xgIJQmUPtljLfw9r9Ekn+Dmh+oSpVtEapJB7dmMJPsrwQ9qxhH3E2NT8SqBbKMTM/noe+MiWH yYei0F/QJyay6LqDy/oCGKA6IK0IbpEwzHLU9s3tw+0tily9zwbLxWrpCu/U2lFuyU+90uDlE nw6PKhMxweajCN/QRhzc8JGbichpKWqWRLXq+PJxKG/oym6Gz50aaeLN9CrP+JkWppIaZtvkf 93qhNCGhpFzkXvUtAP1sWeXw9c5pjElBJitIz1j0NCfOswpXWXf5pqSgZjt6VF8ge9FBDhVdw LKztacvhlyqgOIaKCgK6qIquInhPa+DIrX1OQhx3fQA9ScZHyMp+vmwV8Ou4iNyVehhqXCNnG ChvW4bHJki2ShKR8pG+oyN7HZKpqAZ6XH7U9tJM8xVBd2BVMj1rlg8RtMgeiVVyiddAiqoIa9 dT38L+XLMN/zuCeDd+fJvP61e/eza9o/rm/k3Y0d/BZpauiszjqD0uquAI+GV7hrPzizzSH9V 4d0f/YIWGJYmpdcLQstBg3n+hwY0RqPWTptEQlMya0wf51J/BFoSCdU/V02OYqI6uyFYQAFws 8m1Pefk1AFQ0U5QHyW6NaKqXUzp/aoY/rQyeZEyqmCmvKElsIbtOFaPlfs8R6KGexI6a/Na5r u3OPVwxxW6iJ6SNitzy6DUhprU/AJXPp4YjmXQMirNHQ36CA2k= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Wed, 7 Feb 2018 21:17:17 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/gpu/drm/tegra/fb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/tegra/fb.c b/drivers/gpu/drm/tegra/fb.c index 001cb77e2f59..e63a0b228751 100644 --- a/drivers/gpu/drm/tegra/fb.c +++ b/drivers/gpu/drm/tegra/fb.c @@ -325,10 +325,8 @@ static struct tegra_fbdev *tegra_fbdev_create(struct drm_device *drm) struct tegra_fbdev *fbdev; fbdev = kzalloc(sizeof(*fbdev), GFP_KERNEL); - if (!fbdev) { - dev_err(drm->dev, "failed to allocate DRM fbdev\n"); + if (!fbdev) return ERR_PTR(-ENOMEM); - } drm_fb_helper_prepare(drm, &fbdev->base, &tegra_fb_helper_funcs); -- 2.16.1