From patchwork Sat Sep 9 19:13:40 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: 9945407 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 D18D1602C9 for ; Sat, 9 Sep 2017 19:13:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0B69289E2 for ; Sat, 9 Sep 2017 19:13:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B559E28A38; Sat, 9 Sep 2017 19:13:52 +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 4E8CD289E2 for ; Sat, 9 Sep 2017 19:13:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750788AbdIITNv (ORCPT ); Sat, 9 Sep 2017 15:13:51 -0400 Received: from mout.web.de ([217.72.192.78]:50595 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750763AbdIITNu (ORCPT ); Sat, 9 Sep 2017 15:13:50 -0400 Received: from [192.168.1.2] ([78.49.13.42]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LvSLn-1dRMNZ0s4J-010Yiq; Sat, 09 Sep 2017 21:13:42 +0200 Subject: [PATCH 1/2] [media] xc4000: Delete two error messages for a failed memory allocation in xc4000_fwupload() From: SF Markus Elfring To: linux-media@vger.kernel.org, Mauro Carvalho Chehab , Max Kellermann , Sakari Ailus Cc: LKML , kernel-janitors@vger.kernel.org References: <61016489-eb01-2977-b094-343aa70686b0@users.sourceforge.net> Message-ID: <0ad4caf5-a0fd-2852-5d01-9c9e45a9e480@users.sourceforge.net> Date: Sat, 9 Sep 2017 21:13:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <61016489-eb01-2977-b094-343aa70686b0@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:gI/US8OgryfBk3Ho1KYtPksEnyupID74v8KBGZbFTFGJFGQWmuR kY5Lz14hRKjA/6/A3tHPupTzs0eoM0Zi5gZTu2fIl+wf9pK4Cx4jacATluoIcsOMrP/sdcQ oNRfqsFhlw7h1IdCBngCbEt+fFHI1UN0E/GIIsYpFxLpOGY7fuFU8Nsrz/KNy9+1DBkRLq8 rgublOEg6PC7nvzBQzqJQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:B3tg5SGorqo=:quaGwOh8h6eUjCiNoLNwUa svPddjKhYHl4cXjJqui1dHVgMx8W9bZtNe1d9IMBLh3ducpKxO/ukCsd2RUTghKolraWgTZFB xhKGSO0fY/5XhZz/mow47HEUAgprIHSiGXXCV/6NXZaBxw0G2XaucRuRnNQ8JFOwQmZX8kWmp wlvss5ohNiXQDJ+JUPCO7OvqAF9Gozau1t4Eo6IltBRJ3K9HT1AHrGoIxAdsDutW98fagU8K9 orqTbELLBNVx1DXhcN+KcfuZSd7u4dHmM9SNobgOKVjOJI8vb5ZIUeW/1Djm482xcFfMA/vQ1 G5Wor3XcWd8URSg0fiDyHmOzhoFtI/HY9eEFeiSkIzulUoBYXg2qU3WcE7PJw8A5DZH2H6ojS U2xSBRvdtqU74dZ3hfeFbF/+f7t3VFqosyXjGQWOlgw+4uSlijg6pEsKXUfaQ382+HzkWZO5h 1lkPOu42XotKIhX7eNdoyJYk1stUtlDaKfm4uKtFUO5xeKJlMjgtX4dgShGh9Qa6m7ENKqOXt ToDhYao6KM/WKbybBxhgTQUOdBiixQBtbsmnDGb7BRqLSwbd2NX+aZT64dy/bq+MbDjHLqdYv NBjkdO78YfRCK0HjGNDz+8m3Lsvg7TrT4/Jn+oBoO7zSsVagws76mzv4siyzgnuPurVjjmnEN K6ALUaxWnMOcei8x0oc70aBajVs1tvO913VS5fIafR1u0UhREcBhMt3tyGUeOSCTQ0xNHVGw8 qZgYLQdorapyCKKt+g9YWbOqLG8iM8Epq8GtBYnSEpgg8ePESvKO60yH10aDQJlW3MTyIZgRn x7ln+iIjTMvudhbN2p7X8lcRMN/p0Vrz7AEj8UxN/U/Sa2HqB8= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sat, 9 Sep 2017 20:46:35 +0200 Omit extra messages for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/tuners/xc4000.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/tuners/xc4000.c b/drivers/media/tuners/xc4000.c index e30948e4ff87..bbf386127fc4 100644 --- a/drivers/media/tuners/xc4000.c +++ b/drivers/media/tuners/xc4000.c @@ -779,4 +779,3 @@ static int xc4000_fwupload(struct dvb_frontend *fe) - printk(KERN_ERR "Not enough memory to load firmware file.\n"); rc = -ENOMEM; goto done; } @@ -826,4 +825,3 @@ static int xc4000_fwupload(struct dvb_frontend *fe) - printk(KERN_ERR "Not enough memory to load firmware file.\n"); rc = -ENOMEM; goto done; }