]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/rockchip: vop: remove redundant condition check
authorLucas Stach <l.stach@pengutronix.de>
Fri, 7 Feb 2025 18:22:46 +0000 (19:22 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 10 Apr 2025 08:27:22 +0000 (10:27 +0200)
commitbcdc354a0a545e0e78c6f068e5a11c0285e06eeb
treef25d349b70db5e8863eeecfc1e581fe34a79acc4
parente8bf4a1bdaeadb28d13b9a2bcfd5910fda06eede
drm/rockchip: vop: remove redundant condition check

Instead of checking the same thing twice in a row, fold the second
condition into the first clause.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Andy Yan <andyshrk@163.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20250207182247.215537-1-l.stach@pengutronix.de
drivers/gpu/drm/rockchip/rockchip_drm_vop.c