From: SF Markus Elfring Date: Sat, 09 Sep 2017 19:13:40 +0000 Subject: [PATCH 1/2] [media] xc4000: Delete two error messages for a failed memory allocation in xc4000_fwupl Message-Id: <0ad4caf5-a0fd-2852-5d01-9c9e45a9e480@users.sourceforge.net> List-Id: References: <61016489-eb01-2977-b094-343aa70686b0@users.sourceforge.net> In-Reply-To: <61016489-eb01-2977-b094-343aa70686b0@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-media@vger.kernel.org, Mauro Carvalho Chehab , Max Kellermann , Sakari Ailus Cc: LKML , kernel-janitors@vger.kernel.org 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; } -- 2.14.1