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: 10077231 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 E3086602BC for ; Mon, 27 Nov 2017 16:33:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D45DC28FBD for ; Mon, 27 Nov 2017 16:33:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C94B428FC7; Mon, 27 Nov 2017 16:33:42 +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 73A0B28FBD for ; Mon, 27 Nov 2017 16:33:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753309AbdK0Qdl (ORCPT ); Mon, 27 Nov 2017 11:33:41 -0500 Received: from mout.web.de ([212.227.17.12]:53004 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753106AbdK0Qdk (ORCPT ); Mon, 27 Nov 2017 11:33:40 -0500 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 Cc: LKML , kernel-janitors@vger.kernel.org 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= 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 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; }