mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue