From patchwork Wed Feb 7 21:45:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10206181 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5E9E66020F for ; Wed, 7 Feb 2018 21:45:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4ACE928DC9 for ; Wed, 7 Feb 2018 21:45:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B5B929061; Wed, 7 Feb 2018 21:45:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C73C328DC9 for ; Wed, 7 Feb 2018 21:45:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C83C26E3E4; Wed, 7 Feb 2018 21:45:44 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.web.de (mout.web.de [212.227.15.4]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9D9606E3E0; Wed, 7 Feb 2018 21:45:42 +0000 (UTC) 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 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-Language: en-US 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= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel-janitors@vger.kernel.org, LKML Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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; }