From 7112b490af28a979af82e4ba9a4be4b81182b7cd Mon Sep 17 00:00:00 2001 From: Daniel Scheller Date: Sun, 20 Aug 2017 08:59:12 -0400 Subject: [PATCH] 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 Signed-off-by: Mauro Carvalho Chehab --- drivers/media/dvb-frontends/stv6111.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1