mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-22 18:44:44 +08:00
media: mediatek: mdp3: replace return by goto for proper unwind
An error was returned at one point without going through the goto label for proper unwinding. This fixes a smatch warning: mtk-mdp3-comp.c:1005 mdp_comp_config() warn: missing unwind goto? Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Cc: Moudy Ho <moudy.ho@mediatek.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
55869f435d
commit
5949afa34a
@ -1002,7 +1002,8 @@ int mdp_comp_config(struct mdp_dev *mdp)
|
||||
if (!pdev) {
|
||||
dev_warn(dev, "can't find platform device of node:%s\n",
|
||||
node->name);
|
||||
return -ENODEV;
|
||||
ret = -ENODEV;
|
||||
goto err_init_comps;
|
||||
}
|
||||
|
||||
comp->comp_dev = &pdev->dev;
|
||||
|
Loading…
Reference in New Issue
Block a user