diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2022-07-15 18:06:05 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-07-27 21:24:56 +0300 |
commit | af89bb206d66950c3abe96970c766d3afca1cc43 (patch) | |
tree | f16aa61b57615ba67796b67c2b21d102711dfe06 /drivers/media | |
parent | 8bd1dbf8d580c425605fb8936309a4e9745a7a95 (diff) | |
download | linux-af89bb206d66950c3abe96970c766d3afca1cc43.tar.xz |
media: vimc: wrong pointer is used with PTR_ERR
Fix smatch warning:
drivers/media/test-drivers/vimc/vimc-core.c:214 vimc_create_links() warn: passing a valid pointer to 'PTR_ERR'
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/test-drivers/vimc/vimc-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/test-drivers/vimc/vimc-core.c b/drivers/media/test-drivers/vimc/vimc-core.c index c73f91947f44..2ae7a0f11ebf 100644 --- a/drivers/media/test-drivers/vimc/vimc-core.c +++ b/drivers/media/test-drivers/vimc/vimc-core.c @@ -211,7 +211,7 @@ static int vimc_create_links(struct vimc_device *vimc) media_create_ancillary_link(ved_primary->ent, ved_ancillary->ent); if (IS_ERR(ret_link)) { - ret = PTR_ERR(link); + ret = PTR_ERR(ret_link); goto err_rm_links; } } |