media: stv6111: return NULL instead of plain integer
authorDaniel Scheller <d.scheller@gmx.net>
Sun, 20 Aug 2017 12:59:12 +0000 (08:59 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 20 Aug 2017 14:15:39 +0000 (10:15 -0400)
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>
drivers/media/dvb-frontends/stv6111.c

index 9a59fa318207b4609bbad76a8245cc105588097f..e3e90070e2933478275a08af0a0379f87ebeb152 100644 (file)
@@ -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;