lkml.org 
[lkml]   [2017]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 1/3] [media] xc2028: Delete two error messages for a failed memory allocation in load_all_firmwares()
From
Date
From: Markus Elfring <elfring@users.sourceforge.net>
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 <elfring@users.sourceforge.net>
---
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;
}
--
2.14.1
\
 
 \ /
  Last update: 2017-09-09 22:31    [W:0.038 / U:5.960 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site