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: 10206183 X-Patchwork-Delegate: agross@codeaurora.org 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 07D5F6020F for ; Wed, 7 Feb 2018 21:45:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB3BD28DC9 for ; Wed, 7 Feb 2018 21:45:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE333290C2; Wed, 7 Feb 2018 21:45:49 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 834AC28DC9 for ; Wed, 7 Feb 2018 21:45:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750984AbeBGVps (ORCPT ); Wed, 7 Feb 2018 16:45:48 -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-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= Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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; }