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: 10076369 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 89BEF60353 for ; Mon, 27 Nov 2017 10:17:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91DBD28A98 for ; Mon, 27 Nov 2017 10:17:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86ADC28DCC; Mon, 27 Nov 2017 10:17:27 +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 2876828A98 for ; Mon, 27 Nov 2017 10:17:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751378AbdK0KRO (ORCPT ); Mon, 27 Nov 2017 05:17:14 -0500 Received: from mout.web.de ([212.227.17.12]:53767 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751327AbdK0KRN (ORCPT ); Mon, 27 Nov 2017 05:17:13 -0500 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() Cc: LKML , kernel-janitors@vger.kernel.org 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= Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org 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; }