From 8ce7f0bb6367059def2a4ab1b0e6b260c969bd92 Mon Sep 17 00:00:00 2001 From: Daniel Scheller Date: Sun, 27 Aug 2017 18:54:42 +0200 Subject: [PATCH] stv6111: return NULL instead of plain integer Fixes sparse warning: frontends/stv6111.c:735:24: warning: Using plain integer as NULL pointer --- frontends/stv6111.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/stv6111.c b/frontends/stv6111.c index 79a42df..40c90fa 100644 --- a/frontends/stv6111.c +++ b/frontends/stv6111.c @@ -732,7 +732,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;