From: Daniel Scheller Date: Sun, 20 Aug 2017 12:59:12 +0000 (-0400) Subject: media: stv6111: return NULL instead of plain integer X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=7112b490af28a979af82e4ba9a4be4b81182b7cd;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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;