summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2021-01-20 11:39:20 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-01-27 10:33:01 +0300
commitfec9b0e8491649386559dc154c113f569f908e6e (patch)
treef141dbabd84ad9b00aa7cc82f23234b76bda193d
parent7692057d9cc5f534a47ce1fea6648bfed9f130f8 (diff)
downloadlinux-fec9b0e8491649386559dc154c113f569f908e6e.tar.xz
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>
-rw-r--r--drivers/media/tuners/it913x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/tuners/it913x.c b/drivers/media/tuners/it913x.c
index e8e66390be41..7696a28fe407 100644
--- a/drivers/media/tuners/it913x.c
+++ b/drivers/media/tuners/it913x.c
@@ -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;
}