media: marvell: change return to goto for proper unwind
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 26 Jan 2023 12:33:10 +0000 (13:33 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 07:31:49 +0000 (08:31 +0100)
commit5a1a39a8ac30c7f116d427f7271927d976e4723e
treedc301ab109f7e05834bcb9a851810e942aae686c
parente670d7e3c53d0345c7acfa5b9a2b1c33537a0dad
media: marvell: change return to goto for proper unwind

The probe function used 'goto out' everywhere, except in one
place where it returned an error. That too should be a 'goto out'.

This fixes a smatch warning:

mmp-driver.c:257 mmpcam_probe() warn: missing unwind goto?

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/marvell/mmp-driver.c