aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorLiao Yuanhong <liaoyuanhong@vivo.com>2025-09-04 19:27:38 +0800
committerRaphael Gallais-Pou <raphael.gallais-pou@foss.st.com>2025-09-05 13:17:21 +0200
commit7a9b19cca035d9514ec1bb3d7fb65e56bbd18083 (patch)
tree2efcaa103418b43c563e103fb7bb10307b47f1fc /drivers/gpu
parentdrm/panel: lvds: Remove unused members from main structure (diff)
downloadlinux-7a9b19cca035d9514ec1bb3d7fb65e56bbd18083.tar.gz
linux-7a9b19cca035d9514ec1bb3d7fb65e56bbd18083.zip
drm/sti: Remove redundant ternary operators
For ternary operators in the form of "a ? true : false", if 'a' itself returns a boolean result, the ternary operator can be omitted. Remove redundant ternary operators to clean up the code. Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com> Acked-by: Raphaƫl Gallais-Pou <rgallaispou@gmail.com> Link: https://lore.kernel.org/r/20250904112738.350652-1-liaoyuanhong@vivo.com Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/sti/sti_hqvdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sti/sti_hqvdp.c b/drivers/gpu/drm/sti/sti_hqvdp.c
index 03684062309b..b76606e9a82d 100644
--- a/drivers/gpu/drm/sti/sti_hqvdp.c
+++ b/drivers/gpu/drm/sti/sti_hqvdp.c
@@ -744,7 +744,7 @@ static bool sti_hqvdp_check_hw_scaling(struct sti_hqvdp *hqvdp,
inv_zy = DIV_ROUND_UP(src_h, dst_h);
- return (inv_zy <= lfw) ? true : false;
+ return inv_zy <= lfw;
}
/**