mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
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 <d.scheller@gmx.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
c16ad5de39
commit
7112b490af
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue