media: imx: imx7-media-csi: Move variable to loop scope
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 6 Sep 2022 23:04:01 +0000 (00:04 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 08:32:09 +0000 (08:32 +0000)
commit2f79df7260cdafbe0cb8fd6fd5b3d8024946f95f
treecc614e6a60a37535d476507712df32d32bce34f2
parenta868d306de5848b1e2f4911a7aed941a902cc578
media: imx: imx7-media-csi: Move variable to loop scope

The phys variable is only used as a local loop variable in
imx7_csi_setup_vb2_buf(), with each entry in the array being used in the
corresponding iteration of the loop only. Move it to loop scope,
simplifying the array to a single variable.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Acked-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/imx/imx7-media-csi.c