summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends/stv6111.c
diff options
context:
space:
mode:
authorDaniel Scheller <d.scheller@gmx.net>2017-08-20 15:59:12 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-20 17:15:39 +0300
commit7112b490af28a979af82e4ba9a4be4b81182b7cd (patch)
treece04b74a203feff1379de357e993be55302cc171 /drivers/media/dvb-frontends/stv6111.c
parentc16ad5de39843e9faa02270de08feeda05850caa (diff)
downloadlinux-7112b490af28a979af82e4ba9a4be4b81182b7cd.tar.xz
media: stv6111: return NULL instead of plain integer
Fixes: stv6111.c:665:24: warning: Using plain integer as NULL pointer Signed-off-by: Daniel Scheller <d.scheller@gmx.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends/stv6111.c')
-rw-r--r--drivers/media/dvb-frontends/stv6111.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/stv6111.c b/drivers/media/dvb-frontends/stv6111.c
index 9a59fa318207..e3e90070e293 100644
--- a/drivers/media/dvb-frontends/stv6111.c
+++ b/drivers/media/dvb-frontends/stv6111.c
@@ -669,7 +669,7 @@ struct dvb_frontend *stv6111_attach(struct dvb_frontend *fe,
fe->ops.i2c_gate_ctrl(fe, 0);
if (stat < 0) {
kfree(state);
- return 0;
+ return NULL;
}
fe->tuner_priv = state;
return fe;