From patchwork Sat Sep 9 20:31:13 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: 9945437 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 DCBF2604D7 for ; Sat, 9 Sep 2017 20:31:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BEC2E28A26 for ; Sat, 9 Sep 2017 20:31:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3D0728A16; Sat, 9 Sep 2017 20:31:37 +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 6E13428A1C for ; Sat, 9 Sep 2017 20:31:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751344AbdIIUbU (ORCPT ); Sat, 9 Sep 2017 16:31:20 -0400 Received: from mout.web.de ([217.72.192.78]:64854 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751060AbdIIUbT (ORCPT ); Sat, 9 Sep 2017 16:31:19 -0400 Received: from [192.168.1.2] ([78.49.13.42]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MAMli-1dkko40eV8-00Ba6n; Sat, 09 Sep 2017 22:31:14 +0200 Subject: [PATCH 1/3] [media] xc2028: Delete two error messages for a failed memory allocation in load_all_firmwares() From: SF Markus Elfring To: linux-media@vger.kernel.org, Mauro Carvalho Chehab Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <8c68a1b2-5e6b-ab26-290b-3f9ab46f7a42@users.sourceforge.net> Date: Sat, 9 Sep 2017 22:31:13 +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: Content-Language: en-GB X-Provags-ID: V03:K0:9fKMZM8TdhxAIXrNugubxge2xAKN9Bjf/1eH+HrYQCp4BGzALwe D6zm8WMX51RDhsU/Qh4h/fAplHyVilJKGIQFxmJrbKZnfM7rC6/yMxo5RHdAiOWfIuRPsFo APOqREfoEE7CYkdENctMvZTyAN41iIV06Yy8POsK+h/fSVrQoMJNMf9RNW47mSFqxsJ7v+C kZ6FKbqh7X+DLr4OPV3Fg== X-UI-Out-Filterresults: notjunk:1; V01:K0:xb2igk+2Ft4=:K2RQZD5vwaGKcXW3SPW71Q bJ4XEUXG/TQTwXeNXwnZyOdl0hz0M1jlXTcI+pjhRg7tds97h6a3WtofUe+189lTlspP/pIoE ilXIBGgGpwKbZXLcks6BgOCe73srzWbkc8Nx30zipNF0z3mNsWjWelW6T9ebiW/TebHClBX8x PD1xDNnPSLSZ+B7v7ImRAHvPyhtmWTJSUGZuWEm105JI+EZatFBfNkMdQwBvRhoslDZim2miL 4+HQXxJbhChLzY746oIUiPidPwo0tPX05Ke0xruUT5OyZElsJK5Q69uzM40foHCqe1fmCprPq 6JGIBSkvQZSdoOLqIU6qiM8XgEZc4h3LQp5u0zrLTSgQ6/1PAP/6WZmaBcagFQ/hXnvFUEGCv PZqcylK9vzIBT82VyT71TfvwNNBSGqbfYmJ0xct9lmOzWfJiL1scklIxWP+ML+J/E6V3vY0Zn +bEQ4V2eqXbec1askHcfGwhibmkPnFDyD3XWCGSOatQYfPwhv+NPVC35a9rbTyCSQq1YdnOXz cxIXenvJY9qKu3naoVD8yRO6B4rCGAeTuq1kj4d8Zu9GA+I4l8bO5UvJPL2r1tvyBhGcrD+zW SvCuFVJAP4xE74eYYgtQda3dGK1dn1j86uAvO/Fsu+nfdBayNXMBDLI/5fmqmlTddI5PLwuow SMIgItoCp07PwaNwsibwIkzU0jSFAaSXYSW6K/fC/ryIWI+9uKDK3rHTmzfzW/69w4IfiN8h1 2uMQ8SR9eh81PI1huT9Sc/vjEJZ8G5568XtmqnO/x3JC5ctZZB2gB2jCskQdZopRElku+8mv3 m7ZWBBP43oocp6O3jk1wxwAcCmBNipF0CcPXqbqqioHe0mpDfM= 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 21:30:11 +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/tuner-xc2028.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/tuners/tuner-xc2028.c b/drivers/media/tuners/tuner-xc2028.c index b5b62b08159e..7353f25f9e7d 100644 --- a/drivers/media/tuners/tuner-xc2028.c +++ b/drivers/media/tuners/tuner-xc2028.c @@ -339,4 +339,3 @@ static int load_all_firmwares(struct dvb_frontend *fe, - tuner_err("Not enough memory to load firmware file.\n"); rc = -ENOMEM; goto err; } @@ -389,4 +388,3 @@ static int load_all_firmwares(struct dvb_frontend *fe, - tuner_err("Not enough memory to load firmware file.\n"); rc = -ENOMEM; goto err; }