mirror of https://github.com/torvalds/linux.git
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:
parent
df4beac9da
commit
da938e39a8
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue