media: mediatek: mdp3: replace return by goto for proper unwind
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 26 Jan 2023 12:56:20 +0000 (13:56 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 07:38:56 +0000 (08:38 +0100)
commit5949afa34a0aebe239e3f5b54deb543a464d2125
tree5522617b1ea243ee2b320753d708718377ddb1d1
parent55869f435d7f6a121722c687e3ac056168e473eb
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>
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c