Received: by 10.223.176.5 with SMTP id f5csp1157104wra; Wed, 7 Feb 2018 13:47:56 -0800 (PST) X-Google-Smtp-Source: AH8x2274sTvHAPmoVg4EWkeR6rW+v2ip7vjXGLbm9nYh5GLFECrWSsdtGWBxnZ55SuYcdng4VTA3 X-Received: by 10.98.62.80 with SMTP id l77mr7363823pfa.103.1518040076791; Wed, 07 Feb 2018 13:47:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518040076; cv=none; d=google.com; s=arc-20160816; b=F8s0wY1VAAIC5N+TqlaWk/AFIuOZSfFrJJuFUUo4WYrbQcwQCZ/BOleGFGQh0Ma1oE 1WwtV7hwDKmcJHOV/Jx7vBCElkePkY2D+iW9bMJnVDArX9RoDuQqmZKB1X6Vl0M4LsDX j6LnC302YcdbI+8T3m/VYF6tCnp8YxOyMzFgJw9UOSwKZsTprSVJVJHvFUJZLbmHO44i l+vA4ya6UgNba8SiG8R02sbtw2AK/CEDp/2kGwzd8F6y1mYqEJ1Mq5xUoclVir1ziDH3 jKb/lau8qG/zvUfe4SqgLotA84xN3cZFQqdjeYrmtDiPLLfda0dGTZLWvF2wD7vpvjvl G9hg== 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:references:cc:to:from:subject:arc-authentication-results; bh=Wks1Be8wxW+/1zCuOQ1bDgDHEfW/PRRrJYiYbCBuPFw=; b=WFPiO4HAZBKKbB3b1XcczCPFFnn4cPTT9HLfVROZ3oVBKALPSAF9043+mo1jRXyZMQ FbjpMIc8VJk6Z+NYHzlpf1NHMl8EjG87Bzmqg1+yXKrjohJYcpQDJsicYlngoGobHler oN9h4y57k0RHKvK/6u4iXp4IjXtwKDDepxzM4MNsm0idEoWBKfMi/NuPqWVPEKlqIGa5 pts0rqq5JK1dKTvzQIN2JhiQ2GHZWfN0G4hfDFYtlIEBjx1z8OL/BLRU98digQAclnA8 4vWnJLe1f/EMwHaW6UWHPH7jCKMFEiEzkJjjoJegY7F2WJjX9VA6+WXbYB6IEw7Z4rJj LGKw== 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-v6si1665476plo.200.2018.02.07.13.47.42; Wed, 07 Feb 2018 13:47:56 -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 S1751305AbeBGVpt (ORCPT + 99 others); Wed, 7 Feb 2018 16:45:49 -0500 Received: from mout.web.de ([212.227.15.4]:53303 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750750AbeBGVpr (ORCPT ); Wed, 7 Feb 2018 16:45:47 -0500 Received: from [192.168.1.2] ([85.183.226.68]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MejX6-1eLGPX0mN6-00OD8v; Wed, 07 Feb 2018 22:45:35 +0100 Subject: [PATCH 1/2] drm/msm/mdp4: Delete an error message for a failed memory allocation in mdp4_kms_init() From: SF Markus Elfring To: dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Daniel Vetter , David Airlie , Jordan Crouse , Jyri Sarha , Maarten Lankhorst , Sushmita Susheelendra , Rob Clark , Rob Herring Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <242c009d-e801-57ef-cc95-e342776244de@users.sourceforge.net> Date: Wed, 7 Feb 2018 22:45:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:WJV4qxDgY+OuAGrFX7ypFv0MuJ3D9Ac0zL0Ygi/YvtZOfqF2X7y AOlPQzRbSB68qM6sxl7yIl2Usxl7XWn0zb0ubAEZqIA32UlqHV9H6HANaUlZK1t8nZdpEeH UVd3TcE8y0BtZrSODoFi2HX/pVHQ1s1dOXfy2pDhZdatAvx/ywV8A7Pq77SWR6pQFnT0tQ4 Rj8EOtTX9LFNHWqJAGDuA== X-UI-Out-Filterresults: notjunk:1;V01:K0:GVHZuctKS2w=:eT10dNqWP2N00xO3hvbqK3 Sj29gUMNTqAQWP+hZlZIQF7BJ9Cz5Pbz/u3xt9q9piAcosTcf7u/3KVP1MJZVMqu2IPT7ctzu dLSszEftJHRlsZ+864L8EnLlgUxsc49e5FOzi+p4Db52PAkUGqriQ+fHn5dn+b3ge8CkM62dr njlmbpmz4ugRALz51wC92HwHUOWPJUSURauXPROUD6UV6ax6enI+TxyRQ0L1ZegJb3L5g7Io4 SH0sAiifdVDFhHwxX9N2QydD6cmidy3nR0PTfka2aztaK4EgW5V/UFqj0wdLk7YuNwBCsmDdk m9q/AxlPHc9hbFvhrB3rYWomlnhrTJzVYVvj1HpNXwuPl7efsexs2t3C5xDebUhotAFOPU4st 94rd5o8WWiIq+mDugbPiNRg+Ylb2UnnPyRjV1UVE2p6ee4BFL1LDaJpde5mB/t5FFn32mEUGm sVqxtW0i66oZc1apUyYIrs9Sws+X0THUhoABktgKYnNL6yTvIIJMx44+HLW0JZ2rDo/YaGqwN N0wuVFcwimCsThxi3TT0xALr55AtLvBxQBOyzYmBm98d2yM9vfeT01uKR4c3dey0TgGH9iM+t iDfgImwaa4o9JF29VsWuM1GPt7IINB84s/TNsXndQqU2b8OKPQbR43Hk5f87vrnbfRB0t9kUj SD0r9+KXvLysNG4+RATsqVHeP7C2S1g63OZqiN1pbztuM4X1WF5BD4AkfSnUvK0du5BtL9P0V W7HriiXQDcXJn3vNfHkwPPMkrAu0iZXF3lEAmxMTumVmRooE6QmPY0TKYpaUwWd1TDnmfn9MU gHVrotmCSlViPCuaPQZ3/nQFxiF4v286xaCWuDkrU3fhU0BsRY= 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 22:22:28 +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/msm/mdp/mdp4/mdp4_kms.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c b/drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c index f7f087419ed8..5c5965a9d1f9 100644 --- a/drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c +++ b/drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c @@ -417,7 +417,6 @@ struct msm_kms *mdp4_kms_init(struct drm_device *dev) mdp4_kms = kzalloc(sizeof(*mdp4_kms), GFP_KERNEL); if (!mdp4_kms) { - dev_err(dev->dev, "failed to allocate kms\n"); ret = -ENOMEM; goto fail; } -- 2.16.1