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: 10074551 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 8241F60375 for ; Fri, 24 Nov 2017 19:53:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76BD62A28C for ; Fri, 24 Nov 2017 19:53:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A34C2A2AF; Fri, 24 Nov 2017 19:53:54 +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 179ED2A28C for ; Fri, 24 Nov 2017 19:53:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752269AbdKXTxx (ORCPT ); Fri, 24 Nov 2017 14:53:53 -0500 Received: from mout.web.de ([212.227.15.4]:62235 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751024AbdKXTxw (ORCPT ); Fri, 24 Nov 2017 14:53:52 -0500 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 Cc: LKML , kernel-janitors@vger.kernel.org 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= 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: 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");