[PATCH 3.2 118/147] [media] tda18218: silence compiler warning
From: Ben Hutchings
Date: Mon Nov 06 2017 - 18:53:58 EST
3.2.95-rc1 review patch. If anyone has any objections, please let me know.
------------------
From: Antti Palosaari <crope@xxxxxx>
commit e0e52d4e9f5bce7ea887027c127473eb654a5a04 upstream.
Trivial fix.
Signed-off-by: Antti Palosaari <crope@xxxxxx>
Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
Signed-off-by: Ben Hutchings <ben@xxxxxxxxxxxxxxx>
---
drivers/media/common/tuners/tda18218.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/media/common/tuners/tda18218.c
+++ b/drivers/media/common/tuners/tda18218.c
@@ -274,7 +274,7 @@ struct dvb_frontend *tda18218_attach(str
struct i2c_adapter *i2c, struct tda18218_config *cfg)
{
struct tda18218_priv *priv = NULL;
- u8 val;
+ u8 uninitialized_var(val);
int ret;
/* chip default registers values */
static u8 def_regs[] = {