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>
This commit is contained in:
Liao Yuanhong 2025-08-28 20:23:55 +08:00 committed by Vinod Koul
parent df4beac9da
commit da938e39a8
1 changed files with 1 additions and 1 deletions

View 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) 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) static int histb_combphy_set_mode(struct histb_combphy_priv *priv)