]> www.infradead.org Git - users/hch/misc.git/commitdiff
phy: hisilicon: Remove redundant ternary operators
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Thu, 28 Aug 2025 12:23:55 +0000 (20:23 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 1 Sep 2025 12:43:54 +0000 (18:13 +0530)
Remove redundant ternary operators to clean up the code.

Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Link: https://lore.kernel.org/r/20250828122401.17441-2-liaoyuanhong@vivo.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/hisilicon/phy-histb-combphy.c

index 7436dcae398184d5644dc92594f8c316fc3d44d0..9dd0bd00b4e44036f4515ad5ccee1a76d75b6817 100644 (file)
@@ -73,7 +73,7 @@ static void nano_register_write(struct histb_combphy_priv *priv,
 
 static int is_mode_fixed(struct histb_combphy_mode *mode)
 {
-       return (mode->fixed != PHY_NONE) ? true : false;
+       return mode->fixed != PHY_NONE;
 }
 
 static int histb_combphy_set_mode(struct histb_combphy_priv *priv)