mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-21 21:34:58 +08:00
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>
This commit is contained in:
parent
8bd1dbf8d5
commit
af89bb206d
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user