From patchwork Fri Nov 24 19:53:02 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: 10074549 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 466DA60375 for ; Fri, 24 Nov 2017 19:53:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 360442A288 for ; Fri, 24 Nov 2017 19:53:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 29B652A297; Fri, 24 Nov 2017 19:53:29 +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 1A84E2A288 for ; Fri, 24 Nov 2017 19:53:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7BE026E9F6; Fri, 24 Nov 2017 19:53:26 +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.15.4]) by gabe.freedesktop.org (Postfix) with ESMTPS id 398AC6E9F6 for ; Fri, 24 Nov 2017 19:53:23 +0000 (UTC) Received: from [192.168.1.3] ([78.53.250.25]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LqoAk-1ennAk0w6s-00eJbJ; Fri, 24 Nov 2017 20:53:08 +0100 To: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, Bartlomiej Zolnierkiewicz , Tony Prisk From: SF Markus Elfring Subject: [PATCH] video/fbdev/vt8500lcdfb: Delete an error message for a failed memory allocation in vt8500lcd_probe() Message-ID: Date: Fri, 24 Nov 2017 20:53:02 +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:ZKtlVCXtGC84LxNk6a85yOTAZFRwxnoASmRTrAEnpj7r/9CNfnK zY9zXRBP+EO70t9qE7DqFqsDu1FV4+lurmG/yREA7JH7eIhVDNNRMoeY5/EMwNv/ScXVDKz jeyZ6Jd8L7tAuvUPCgjdkxdBTlJ2hokfoKKFE+vwYkJwCIKQRMrOXfLgosFn6RYzoViFCZg ibSQjyYgeUDjhQGC18dDg== X-UI-Out-Filterresults: notjunk:1; V01:K0:G0m/sKUMqBw=:CMqe3YVCE3Q+KOtO7NRJ++ 94RpxgirXmUXH1n3sswu78qySoDhbn7fD6BM4sYYVSLozjlOI+XWAenI9kg4z1DjnyZN7WGxm I1lRzVUA9dTM4pUqr61+ZUngvOcFLDrVLwRrx6+PJi9Sz2MblO8QH5NqmTsRl48hMBGwEwtlA /Pe5UEW/cpQOj5XR0EBFe4jMM9vjI3ZGhrcX1wY0Rc1cR/ufi/jUCidwYhimu9w9O1DgiOWOS NnuPZ4Yf+lUDAo0KepSAQnbv+I8g+Jtko49n9e/eI3ksLE60BDUOxMXpUi1XK9zBhSJ+OR9hM Mre768GPhQZkuygIJ2stfKhQIb0vWjajVY0EXVyoHAwCD2Wk1OuauVnhLdWz9+SgXIWE0xuPZ nmH0nu9BZhO6vQiENlVQ/Fn80tJybNVvf5jNCcMMPSlLyWwZw0sXkDQ8Dbyxp4s6R8sk0omJT GTTDKqTmxRDj3HC2ujuOcqUdku3mXr9XuDgztAJi1+a0Fpsy4P86DEOj/O3ncxswqOuS7Q8K3 Jdo6xUhTrIOp2RqqkhJSi03V4G7VAmptoXOTMu2+kOlxBFd8W95/M4KdrtvG2dPx9AxbftZiO D0P1aUdqgV5Ohprwcy90U2MHflN5OvylElzZHtMD3b4pAxKkXcCWRyks0j/9qdZqbZ0GzjV31 v1EFRjf8Ry7XgioYU3gfP35zERaYTITodkaRMZRtz+VSlUxEES2SmviNpwXlXzxVXTBokSUZj 3Z6clO9esQLBfUfOuclRG2OuMjPG0nf3kOuOMqFFdJktdXKb33I6bN6GYpglED5BK/2bLpZJy XLRgVuwvtpsug+IgR4Gg8gme3S+sgAwZLLHUHGS46VoGg+WU8U= 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: Fri, 24 Nov 2017 20:42:08 +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/vt8500lcdfb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/vt8500lcdfb.c b/drivers/video/fbdev/vt8500lcdfb.c index 1a1176bf0906..5c5cd2923041 100644 --- a/drivers/video/fbdev/vt8500lcdfb.c +++ b/drivers/video/fbdev/vt8500lcdfb.c @@ -289,10 +289,8 @@ static int vt8500lcd_probe(struct platform_device *pdev) fbi = devm_kzalloc(&pdev->dev, sizeof(struct vt8500lcd_info) + sizeof(u32) * 16, GFP_KERNEL); - if (!fbi) { - dev_err(&pdev->dev, "Failed to initialize framebuffer device\n"); + if (!fbi) return -ENOMEM; - } strcpy(fbi->fb.fix.id, "VT8500 LCD");