From patchwork Mon Nov 27 10:17:00 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: 10076365 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 01D4560353 for ; Mon, 27 Nov 2017 10:17:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D75B28A98 for ; Mon, 27 Nov 2017 10:17:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0260328DCC; Mon, 27 Nov 2017 10:17:13 +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 2C3DE28A98 for ; Mon, 27 Nov 2017 10:17:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9D16589D30; Mon, 27 Nov 2017 10:17:11 +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 88E6189D30 for ; Mon, 27 Nov 2017 10:17:10 +0000 (UTC) Received: from [192.168.1.3] ([77.182.143.129]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0M89z3-1f5CQA2rCb-00vc10; Mon, 27 Nov 2017 11:17:03 +0100 To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Bartlomiej Zolnierkiewicz From: SF Markus Elfring Subject: [PATCH] video: bf54x-lq043fb: Delete an error message for a failed memory allocation in bfin_bf54x_probe() Message-ID: <9eff0ce0-070d-77aa-8855-73a96eb778fd@users.sourceforge.net> Date: Mon, 27 Nov 2017 11:17:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 Content-Language: en-GB X-Provags-ID: V03:K0:tm094gDuWMMMnkVdKHDG6d04ttVl0K2sEyc6VNq/5+e/z1T7IGv oC1/cZhvMGz92mBxIsIgkZueQ4oWRApumqc8A9PGxHDa+mJ1Z/TLCD7xc1HsLqLzS8azRZQ 1u7L1FgGsI0lL7Nbqz05uM7bbddXC41xvSXbe5ZUkTSLyf57F7278cPR65nS72GCez2WcgI QXSVf+QUVAuDoGY9uDfMg== X-UI-Out-Filterresults: notjunk:1; V01:K0:s5G4p9LPsMI=:j6DTjovK/wUfimOd91iPLo ouPs3Qd9L+5tsjwh2IxtzHvrHSybX6Euc7H0DsAT7hCFAAU6d3XbPaRdQ12aC6HOyXmSNhlbr nnaAnULAMFIiLgNtyLqlVtZiu4B/iIV6tM198So5IBPQq85G45L5HYs3GR3dY4HcYcZZKKkZK CFo3VeNExxmobDEanV05ZvnHNqqMj7zvJcW7VrX8IawBhHbmOotOULNEpe3wVe9QZNxn/9kdg Xo1Ps+GdorTKLdwq+ptx7K6kPChTZhcmNf7uBu1ns0lYy0RTwE2YrfinooGX6VU3N/SBLPKTq kU+2jYWznGgFrEVvtg9gBc0cwhDbPkhKoBOGfygMBItNIYyCCy/NPdINDEr3w1DdASPbwgKFq FD6PeKvm/wmih4dDkOR9Rz3Rm7Z+P69Ul7awz69pqM69sxjuD1xjuo6lRUfsQUnyBAGMAoh/P 3HCIi9cscLoslCaMlwdM7G/rhtGfDOFUaKKYNEHrOibaGDF3zVHixOABA47iLyWtrgn03mr4j joflIevoxj+d+NXkVDCDj13Q289mzDOYDGigJYy5r3iIF2qAMLZRj0pzv19AcjLjgcG6SLY0j jFQcD0ytji5w3iGn+G+7/DIPxpEShpdPehgJxnxUALtH0a8FSPNAJHZ4Gr2tHZqhNvKk2ngIY DTBLpuFGmCDQDI/WTql7kmSzbTHRmTua8FnUIRkV8KUALA0mrnsIsuSHmReWBaoSDYIcf1HAw FdH0EeyVxjXa90MjFFof8CS1WeVTCYt1OUDHTDjTioDkJMj/508XWMRN84hunRUYUT3VggKzQ XjO9GV3crFQEQTzwlGK1pDb19ruujjVP6P8GzlnZV5fGIjCms0= Cc: kernel-janitors@vger.kernel.org, LKML 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, 27 Nov 2017 11:04:22 +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/video/fbdev/bf54x-lq043fb.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/video/fbdev/bf54x-lq043fb.c b/drivers/video/fbdev/bf54x-lq043fb.c index 8f1f97c75619..69a8c5d82ad7 100644 --- a/drivers/video/fbdev/bf54x-lq043fb.c +++ b/drivers/video/fbdev/bf54x-lq043fb.c @@ -605,9 +605,6 @@ static int bfin_bf54x_probe(struct platform_device *pdev) fbinfo->pseudo_palette = devm_kzalloc(&pdev->dev, sizeof(u32) * 16, GFP_KERNEL); if (!fbinfo->pseudo_palette) { - printk(KERN_ERR DRIVER_NAME - "Fail to allocate pseudo_palette\n"); - ret = -ENOMEM; goto out4; }