Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

phy: hisilicon: Remove redundant ternary operators

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>

authored by

Liao Yuanhong and committed by
Vinod Koul
da938e39 df4beac9

+1 -1
+1 -1
drivers/phy/hisilicon/phy-histb-combphy.c
··· 73 73 74 74 static int is_mode_fixed(struct histb_combphy_mode *mode) 75 75 { 76 - return (mode->fixed != PHY_NONE) ? true : false; 76 + return mode->fixed != PHY_NONE; 77 77 } 78 78 79 79 static int histb_combphy_set_mode(struct histb_combphy_priv *priv)