]> Gentwo Git Trees - linux/.git/commit
drm/sti: Remove redundant ternary operators
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Thu, 4 Sep 2025 11:27:38 +0000 (19:27 +0800)
committerRaphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Fri, 5 Sep 2025 11:17:21 +0000 (13:17 +0200)
commit7a9b19cca035d9514ec1bb3d7fb65e56bbd18083
tree2efcaa103418b43c563e103fb7bb10307b47f1fc
parent2c907d852c57551ca5481409da33b67fd3800af3
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>
drivers/gpu/drm/sti/sti_hqvdp.c