Skip to content

Commit da938e3

Browse files
Liao Yuanhongvinodkoul
authored andcommitted
phy: hisilicon: Remove redundant ternary operators
Remove redundant ternary operators to clean up the code. Signed-off-by: Liao Yuanhong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent df4beac commit da938e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/phy/hisilicon/phy-histb-combphy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static void nano_register_write(struct histb_combphy_priv *priv,
7373

7474
static int is_mode_fixed(struct histb_combphy_mode *mode)
7575
{
76-
return (mode->fixed != PHY_NONE) ? true : false;
76+
return mode->fixed != PHY_NONE;
7777
}
7878

7979
static int histb_combphy_set_mode(struct histb_combphy_priv *priv)

0 commit comments

Comments
 (0)