]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86/amd/pmf: Remove redundant ternary operators
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Thu, 28 Aug 2025 12:26:48 +0000 (20:26 +0800)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 4 Sep 2025 12:54:13 +0000 (15:54 +0300)
commitf490253809c8dab4af62e787f5a3ac3d22aa869c
treed5b5445f244bc47195a72ca29138e0008a948d8c
parenta191224186ec16a4cb1775b2a647ea91f5c139e1
platform/x86/amd/pmf: 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>
Link: https://lore.kernel.org/r/20250828122649.39574-1-liaoyuanhong@vivo.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/amd/pmf/sps.c