mirror of https://gitee.com/openkylin/linux.git
media: tuners/it913x.c: fix missing error code
Fixes this smatch warning: drivers/media/tuners/it913x.c:65 it913x_init() warn: missing error code 'ret' Set ret to -EINVAL if the clock identifier was invalid. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
7692057d9c
commit
fec9b0e849
|
@ -62,6 +62,7 @@ static int it913x_init(struct dvb_frontend *fe)
|
|||
break;
|
||||
default:
|
||||
dev_err(&pdev->dev, "unknown clock identifier %d\n", utmp);
|
||||
ret = -EINVAL;
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue