1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

stv6111: return NULL instead of plain integer

Fixes sparse warning:
  frontends/stv6111.c:735:24: warning: Using plain integer as NULL pointer
This commit is contained in:
Daniel Scheller 2017-08-27 18:54:42 +02:00
parent 5751c3fb1a
commit 8ce7f0bb63

View File

@ -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;