From patchwork Mon Nov 27 09:00:47 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: 10076123 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 D0C556028E for ; Mon, 27 Nov 2017 09:01:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C361B28DAA for ; Mon, 27 Nov 2017 09:01:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B460228D6A; Mon, 27 Nov 2017 09:01:11 +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 5509728D6A for ; Mon, 27 Nov 2017 09:01:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A600889C9B; Mon, 27 Nov 2017 09:01:10 +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 C436689C9B for ; Mon, 27 Nov 2017 09:01:08 +0000 (UTC) Received: from [192.168.1.3] ([77.182.143.129]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MeBDG-1eUiOc1TKQ-00PrC3; Mon, 27 Nov 2017 10:00:56 +0100 To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Bartlomiej Zolnierkiewicz , Timur Tabi From: SF Markus Elfring Subject: [PATCH] video: fsl-diu-fb: Delete an error message for a failed memory allocation in fsl_diu_init() Message-ID: <39d05a48-e649-fb88-0e86-4f7528fd67f8@users.sourceforge.net> Date: Mon, 27 Nov 2017 10:00:47 +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:e7WT2JBzatCmT6n9t8riv6o8nU3EaAmX1cvBeZU/pxuxGY9+QRy VPmBsmDr/f372JkGAQQeK40OGqtsr9r/lVr7Ag5HOzQwyfwMAWcMmlVWI4Ewu1ueQZzEENb qf1vyFgWs/gbLadzYrIZrb+2N53qLNE2g0qwRMMLeNpgPwAfM38Ki26Dcgj2HHhCtayOGq2 40wwXMKUkXlBGqISEggbw== X-UI-Out-Filterresults: notjunk:1; V01:K0:/BmkPn56JUs=:Ey/bK5t8VJTCQb6ohlOBQ5 +BlowUwZGluasmI57+iBJU2CVLfhuWbP/w/8xNNj1TaG/qUzpIW88uSM2qFvPAkjO/mSR77IO 1GpE3My1zn9gsQl3xWAjmQE8ix/vDQNrj/YgWx3Z+Jv1mNRhQEZxFj9+SDkLacU57cXK8ZwYS crVEUN6kEHa0Gm9kKRQJXuEv99Htsh4hAWiinXJuC5b7s0uyawhvp4E/HtbN2MghO74qOnjN7 nmUes7DNJR3IpQxe9duWJ78SvK3zxNU2T/X9i0G9p01nWaGud/N2kcJCxj/FP0nc3n31UrZsQ gtVKWdmGuwymOWyTpglOcBeiY1RP4QsyMm4zVWrvpfY2AYT32xzWF63+Mtowe2qa1HaR5RWHA c9X41Ncr5tO3uXR6nB3UtoRLEaHQrMq6S3wlL8UOh2+6XD/2muYHgELUBG2KGYhGy6o2bHuvB 3TXX+nyuKIns85mILZmvQxRWAhXhZp2Rvm0A+B6rKWOZRoiQqAlmRHFNX0T/tE1ziw1VWodPS j/pqw5X1icOfi6gGrSXzkx6KNI3SHKIZ6yxr+viPr9qsuq0SwsRlnGinhbSJJp4EkXcw4gtWk 3XUv5U5qmCkKpPs6gKRdJI2EP422OGOrNVxepjLHi8D6bAce0/K7WeSxacr+PG2lz1bAzmPV2 Z3F/0M5wvCfq/DhBjJFqixiQZbomSbhDLKR5Gol//Z6sxAcngZjyRW76heqWYXN0GcUH8taQA eRYB5gh13nvGCAOadcH4BbnVqLa6apRGKpkaJ70CnkjEmApP1oCElr2jJJLDIWzHYCUHVBgJX 6qAIYBa7uRA36kq9r+RrO0Nx2uz4ZmzjSGhuEJC+/KAfHZDnPA= 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 09:56:09 +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 Acked-by: Timur Tabi --- drivers/video/fbdev/fsl-diu-fb.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/video/fbdev/fsl-diu-fb.c b/drivers/video/fbdev/fsl-diu-fb.c index 25abbcf38913..1bfd13cbd4e3 100644 --- a/drivers/video/fbdev/fsl-diu-fb.c +++ b/drivers/video/fbdev/fsl-diu-fb.c @@ -1960,12 +1960,8 @@ static int __init fsl_diu_init(void) of_node_put(np); coherence_data = vmalloc(coherence_data_size); - if (!coherence_data) { - pr_err("fsl-diu-fb: could not allocate coherence data " - "(size=%zu)\n", coherence_data_size); + if (!coherence_data) return -ENOMEM; - } - #endif ret = platform_driver_register(&fsl_diu_driver);