]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0e9aaee3d4a45161c4d09199db224846d2636604
tree7b372cb6eace466dcf35ae1d1b2bbed08ba03f95
parent1c9a5cca0a170af647e4014f62eeb5f78f99de6a
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