From patchwork Mon Nov 27 16:33:27 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: 10077229 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 48D17602BC for ; Mon, 27 Nov 2017 16:33:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3AB9928FC3 for ; Mon, 27 Nov 2017 16:33:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2F91928FC4; Mon, 27 Nov 2017 16:33:41 +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 CED9328FBF for ; Mon, 27 Nov 2017 16:33:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 070686E1DF; Mon, 27 Nov 2017 16:33:40 +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 D165E6E1DF for ; Mon, 27 Nov 2017 16:33:37 +0000 (UTC) Received: from [192.168.1.3] ([77.182.143.129]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LzK61-1fEzFL3qPh-014TNo; Mon, 27 Nov 2017 17:33:31 +0100 To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Bartlomiej Zolnierkiewicz From: SF Markus Elfring Subject: [PATCH] video: bf537-lq035: Delete an error message for a failed memory allocation in bfin_lq035_probe() Message-ID: Date: Mon, 27 Nov 2017 17:33:27 +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:X9XrwDJdddxl6eCuAGDIGeQNFQFYCRZ7Yw4op0WlEI8/aNf6b3e df3PR+gRM+qF14PBBWZBn33snjjUlQtKuqYCwa4vBXqg5eGhZ349HfQQEJNLFR6Ga5erzb/ PJb1dhnb+8XYsH92e8d2SXXpn0XTHNCPkf6VDFIBxkGJ28GuYP7Q6q2UCfIhcdbzPypJAIG FgZTYnc2rKWYHKU1lkr7w== X-UI-Out-Filterresults: notjunk:1; V01:K0:dwHJSiJ3EZw=:voHogbz05JAz9prt5IKz36 +NNqclK0jJlmvp5JlM3Pp7rKXRucQIuh3K/VlhdbxoeahvuoJdO9zkUgI9k8ACjsnJldqZaXY RoPWh/Uesn9A9wFAKPZnxLMyAHiJgFfCi/nWVcs+8NnCLkze4utiIgXIbkPuirqUP3qNRLIBI uLyKL2WZU/oeFgEYwcpwlDazv4V3tS1byQzJSPIcdyQIBTRRPJ45wcOsbMsejdzhW/9hRKMOc O9rgc2SxUAVRz1iMjpasM3MIpssWBMix79T0mXitcoUXjwPi+v0Mzqpymnq2sxrnHhPpOQ8Kk EX4A/UmpwBSlHLIpEcPPshalfex5kJ7A/oL9LfYxi7MvPNKpwEI7Fj2Q8xYZV2j0Lr138YjWs I5RSyZYy0XoCxKqvd1BaZGqu/HRIqnKt4qUOlREBrFbPlSYPGP7kGwieybIn6hjD9bf/snLrZ eRdWvALTnGWqKsVnbEPPxEogIXlh+RwvRZK6uNvbvfgw4EpKHf99qt5YpLnSu0l8wp40cYMm7 1oJKApV4jY3qilLcuMQt/fO0kaZyjnaeTCcVjXtkiQaz/BM7hngUbQY6YLFa1DCFnasdcJO9W sm5z1HpRvI2QxcuwEru+z4XHYTsKSKrxtGb0dkYTetH/oLWJzVD/299a/2o5JX6ogmDk68gzJ YraobK9S3i+ATOtabivYDibppGF/In8nn6FT6seRXFJV3Dw4Br9HXoJ7Lc+P/GWbU8QFXxZkV PMEhYMctquJH0Wb/bjHpt8OMr3dVyCqlAC20fG02S2sRGWLQ2bOXFHaHiMxjIToC1Yld+1iv2 rzWoozjfUT9PjPdFAhGmt3d2dDlEGNsWtLnrTqOv9rcuTdpIIQ= 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 17:27:51 +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/bf537-lq035.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/fbdev/bf537-lq035.c b/drivers/video/fbdev/bf537-lq035.c index ef29fb425122..5142e5724f57 100644 --- a/drivers/video/fbdev/bf537-lq035.c +++ b/drivers/video/fbdev/bf537-lq035.c @@ -741,7 +741,6 @@ static int bfin_lq035_probe(struct platform_device *pdev) sizeof(u32) * 16, GFP_KERNEL); if (bfin_lq035_fb.pseudo_palette == NULL) { - pr_err("failed to allocate pseudo_palette\n"); ret = -ENOMEM; goto out_table; }