media: ti: cal: fix useless variable init
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Tue, 26 Apr 2022 07:06:14 +0000 (09:06 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 30 Aug 2022 05:40:28 +0000 (07:40 +0200)
commit2a50e8d75abaa9f878ec424c3d0a0c8d98767d0b
tree7b372cb6eace466dcf35ae1d1b2bbed08ba03f95
parent3028fb90f5b972ef9b9e68e75a8372b8f9a8e312
media: ti: cal: fix useless variable init

'ret' is initialized needlessly in cal_legacy_try_fmt_vid_cap(). We can
also move the variable to the for block, which is the only place where
it is used.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/ti/cal/cal-video.c