drm/imx/ipuv3: ipuv3-plane: reuse local variable height in atomic_update
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 20 Dec 2022 09:44:30 +0000 (10:44 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 28 Jul 2023 15:25:31 +0000 (17:25 +0200)
commit71e3657cb12607b6c94ed4be908873e1c1db5ef5
tree1d3e3c31a40b411673da44cd13e7ed31e62c20f1
parentf81bb0ac7872893241319ea82504956676ef02fd
drm/imx/ipuv3: ipuv3-plane: reuse local variable height in atomic_update

Use the already existing local variable height = drm_rect_height() >> 16
to replace other occurrences of the same value.

Suggested-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Link: https://lore.kernel.org/r/20221220094430.3469811-1-p.zabel@pengutronix.de
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20221220094430.3469811-1-p.zabel@pengutronix.de
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c