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: 10076125 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 7A4F26028E for ; Mon, 27 Nov 2017 09:01:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D03C22A68 for ; Mon, 27 Nov 2017 09:01:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 621DE28DAA; Mon, 27 Nov 2017 09:01:13 +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 0B18D22A68 for ; Mon, 27 Nov 2017 09:01:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751528AbdK0JBM (ORCPT ); Mon, 27 Nov 2017 04:01:12 -0500 Received: from mout.web.de ([212.227.17.12]:56054 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751390AbdK0JBL (ORCPT ); Mon, 27 Nov 2017 04:01:11 -0500 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 Cc: LKML , kernel-janitors@vger.kernel.org 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= 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 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);