]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/mxsfb/lcdif: move iteration-specific variables declaration inside loop in lcdif_a...
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Tue, 7 Apr 2026 12:24:18 +0000 (14:24 +0200)
committerLuca Ceresoli <luca.ceresoli@bootlin.com>
Tue, 14 Apr 2026 11:52:31 +0000 (13:52 +0200)
commita6bdf27448b49af6a9daa1d081e2f019fb002a4a
treea8450116dafb23ee7eccccedd8e0d01e04375adf
parentb08bfcbc138a450434e9fa38dfd487f687ae7ba3
drm/mxsfb/lcdif: move iteration-specific variables declaration inside loop in lcdif_attach_bridge

The bridge and ret variables are per-iteration variables, whose values
don't have to be carried to the next iteration or be used after the loop
end. Move their declaration inside the loop scope as a cleanup and to make
code clearer.

Reviewed-by: Liu Ying <victor.liu@nxp.com>
Link: https://patch.msgid.link/20260407-drm-lcdif-dbanc-v4-4-247a16e61ef9@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
drivers/gpu/drm/mxsfb/lcdif_drv.c