From: Hans Verkuil Date: Wed, 20 Jan 2021 08:45:23 +0000 (+0100) Subject: media: sti/c8sectpfe: set correct return code X-Git-Tag: v5.15~1736^2~147 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d14284fe3634e873560a5dce90b65dfd409a29d;p=platform%2Fkernel%2Flinux-starfive.git media: sti/c8sectpfe: set correct return code Fixes this smatch warning: drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c:829 c8sectpfe_probe() warn: missing error code 'ret' Set ret to -EINVAL if the reset gpio was not found. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c b/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c index 5ceb366..a7a6ea6 100644 --- a/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c +++ b/drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c @@ -826,6 +826,7 @@ static int c8sectpfe_probe(struct platform_device *pdev) dev_err(dev, "reset gpio for tsin%d not valid (gpio=%d)\n", tsin->tsin_id, tsin->rst_gpio); + ret = -EINVAL; goto err_node_put; }