From patchwork Mon May 8 11:22:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9715999 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 34F6A6035D for ; Mon, 8 May 2017 11:22:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2742726490 for ; Mon, 8 May 2017 11:22:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 188E326861; Mon, 8 May 2017 11:22:43 +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 A599426490 for ; Mon, 8 May 2017 11:22:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DF5F96E207; Mon, 8 May 2017 11:22:41 +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.17.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id A53716E207 for ; Mon, 8 May 2017 11:22:40 +0000 (UTC) Received: from [192.168.1.3] ([77.182.37.117]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LmcjH-1dhqqK3CtP-00aCEd; Mon, 08 May 2017 13:22:32 +0200 Subject: [PATCH 2/2] drm/etnaviv: Delete an error message for a failed memory allocation in etnaviv_bind() From: SF Markus Elfring To: etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Christian Gmeiner , David Airlie , Lucas Stach , Russell King References: <6652b09b-393b-01db-a0d4-de53dce8994e@users.sourceforge.net> Message-ID: <782e850b-0376-c641-8ede-7b9ed6d385b9@users.sourceforge.net> Date: Mon, 8 May 2017 13:22:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 In-Reply-To: <6652b09b-393b-01db-a0d4-de53dce8994e@users.sourceforge.net> Content-Language: en-US X-Provags-ID: V03:K0:OYWlnzQ1FBePAsjMZ80VEGaTVBq9HCxng8ZmljZ5uoBKlkk+pft 8vN7fDrM6omCz2ivbqCOsK/h62+3+762Abikp4kh3xjkX2ybdDS0huFZ033aza61yQha8Ya b84zoeWgfB+1zVqyOp7lZ83HLYjrRZtr9kyeY08CzNju26Fe+RDpBXinhtp6ZBVT/YH1rEa z2hZQ4OQCsO57kCNSHprQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:YUQxdbCzvo4=:M9YwSY04AetFanHB2r4okg IsjjtVoG8i/+ry0kPpAzjQ/ewerT3+HSmleoiIqLINuebLnY1BrNZ8VHkdFv0mmTlg9Mx+xUo rzh/qDDQryS8KgYz5bpBjDcRLD+zZgCM9nGhXqMyZ5hO2nCsxjnlD3+KnESY7MDD6fg0XH5h9 oH9AiD+RucCGKzkrVrjTAq7V7YC/0COt1GnT/JXATTiV3PBgB1aWiEBVYAyJmMyGgkaCRcvjA oSH3wllKx3g0/tzR85mi0FyUOn+mtNt0hmHLEn0C0et85ENEJAZZZ/HLoLd3DGh2X/I42PbTL Y7huHs4SXFm+RSOzA+Kn8PdtXK8Jm/3Kay+2UHs2RN5I1mPZrEn/Hi/rlEWAm1ZsnfLrcau9d 1fCaZFV5szI/IxTdehrXyXk0CgO7wtgy9EcQ137owHwmnL9iXGlZ57QfiJf/X9f9TnSiwPfFr cJIYyQGs8rL7nT+iYFMC+nzR15gjGBTFkI3R95otdoIp74Bn9YhL7PpphgnnqKjqMWIHw4Xn4 JDHBolF10rVMAaVBsz3lnPXle9ER6Cfc3S6oMukbMZeBPQrkgBe6lNmyD+hXSrQygj72VRN5c APYlIwRsYSNqOxHB6F1QZ59T0jRBsKGos+aLYgEoDyt+jR+IHVbakPeqOMpmIq+yJ4H7UWtFr yadQ1sgRonfKve0jAiXu+/Vjbrmtxfqg6VScAQgamK75aD+6iEDVfUsxz5+Wfu14O8tIzS3rx NdKwXMoUfri55VDyOMHrw4tLTTv7XeGtPouHmT7t/lj8hBazSne7ye8WSyZriIBDSYWFw8R9y MUxQU6E Cc: kernel-janitors@vger.kernel.org, LKML , Wolfram Sang X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Mon, 8 May 2017 13:08:11 +0200 The script "checkpatch.pl" pointed information out like the following. WARNING: Possible unnecessary 'out of memory' message Thus remove such a statement here. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Signed-off-by: Markus Elfring --- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c index b4deb26e1e40..b121473622d0 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c @@ -530,7 +530,6 @@ static int etnaviv_bind(struct device *dev) priv = kzalloc(sizeof(*priv), GFP_KERNEL); if (!priv) { - dev_err(dev, "failed to allocate private data\n"); ret = -ENOMEM; goto out_unref; }