mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2025-03-01 10:35:23 +00: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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user