From patchwork Wed Aug 30 19:15:58 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: 9930669 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 E8A146032A for ; Wed, 30 Aug 2017 19:16:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D953D28765 for ; Wed, 30 Aug 2017 19:16:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CDB7028775; Wed, 30 Aug 2017 19:16:25 +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=unavailable 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 979F028765 for ; Wed, 30 Aug 2017 19:16:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750848AbdH3TQM (ORCPT ); Wed, 30 Aug 2017 15:16:12 -0400 Received: from mout.web.de ([212.227.17.11]:61292 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750756AbdH3TQL (ORCPT ); Wed, 30 Aug 2017 15:16:11 -0400 Received: from [192.168.1.2] ([77.182.113.36]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MXpdL-1dyWZR1Sjf-00Wo33; Wed, 30 Aug 2017 21:16:02 +0200 Subject: [PATCH 1/2] [media] drxd: Delete an error message for a failed memory allocation in load_firmware() From: SF Markus Elfring To: linux-media@vger.kernel.org, Colin Ian King , Mauro Carvalho Chehab , Max Kellermann , Sakari Ailus Cc: LKML , kernel-janitors@vger.kernel.org References: <62e6221c-226c-3b25-08bb-4baff9b23cbb@users.sourceforge.net> Message-ID: <190c120b-6974-e232-a171-e0e103a3e9a6@users.sourceforge.net> Date: Wed, 30 Aug 2017 21:15:58 +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: <62e6221c-226c-3b25-08bb-4baff9b23cbb@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:Wz+X8bUlUOQVDNMRLZbVFh1F1MlLrMk3ECQuTMOX2GpCr5Alh6L 8SGhlgMQ5hrm+EMi+JPq6RtpJfHgJTAWNXuWt/Q10L9yc6itjHqPjv1Vs/fzC8+jKDsLenx Jt84bfoS3YGphI81FUWIwOSmA/B3GE+JxMIHKdGLSLmZfudLTof3JvQrwMGCaByIO+uIcdc 3n1GUjjg+UriowUTZ9+sA== X-UI-Out-Filterresults: notjunk:1; V01:K0:f8fOLcf8EQg=:x8B/eml4aleNdVHrsuknt5 mkR27bRKy/+UKh0lfo4miSbIazf2y/cUSTLcUDqT4CPCEikv/BJcztnJVmGgPG/drd6UUbZPh b+qyuzFhNsrne4LPECFTi87SIET2m1nYvAGpmLNc5fXZ/4pKRfKAKjxSKKcxPQlQqDmGWZVZZ bU4sdV+/JyziARO1kbyVzky4se6K021U/OKGUlum7dRYx6n/0DNnWc+TWvxy/mKNZR2GUB+Nq PvOdkFfkGTFogFYSvEEEBLvfrCL1PNQ23w06gXk4DbhOdk7nL5+dsXqzrkdv4HTdUmOklEK0D /saE6wJbKpbWi60XDCcTApCYJzx/W1zi6FZUs5GyRImbrplR4BoBSy2a3OJI+VaIC6UMjCY8B ShI3afXQ/IIYyweqsshFBJFoqW+fK+llREOHGWnaIeJUSYcFuxocnnKsBWUg/5FKvzp6Gad4P GHBW/wgEgj6DrUT6qFvFAGMF8LlN+E0ui8k7+vv/W2/iKrRGHGgj6E/je+HLGQwYu/eGWsI2N AazXN4R576wLtjs+VAXnpgKxgQLxbd1EzNsJ8ftbNabRomH/dVnRnmpPys1mrz4gwLsSvSFbm p+4gy3Cq8/VlhqWFd1ctbmvkR9T2yB04Wm1rXNQzFkGJJlPw0f075zllm8Z00lxYB364KQPmq VclmuA/16QNC1ktRHcoY4svdk2oHmzOFQYCLVo6inpt3QWLFr79cDYsqBHMP5FPdO+ukPs1dJ YykUExsQ9ow2a3F4sXu1bN2qQV7yV2J4JcUeyZE08OKDsJTdQ7dKb/4y0tcMluuMfTWNiVHd7 tzb0XfJI17Hh8NZzDbIAM4rkTVF6llbMr46smSK5+Q5BP6Hbkc= 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: Wed, 30 Aug 2017 20:47:12 +0200 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/media/dvb-frontends/drxd_hard.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/dvb-frontends/drxd_hard.c b/drivers/media/dvb-frontends/drxd_hard.c index 7d04400b18dd..47b0d37e70ba 100644 --- a/drivers/media/dvb-frontends/drxd_hard.c +++ b/drivers/media/dvb-frontends/drxd_hard.c @@ -911,7 +911,6 @@ static int load_firmware(struct drxd_state *state, const char *fw_name) state->microcode = kmemdup(fw->data, fw->size, GFP_KERNEL); if (state->microcode == NULL) { release_firmware(fw); - printk(KERN_ERR "drxd: firmware load failure: no memory\n"); return -ENOMEM; }