[PATCH 0/3] phy: Remove redundant ternary operators
Liao Yuanhong
liaoyuanhong at vivo.com
Thu Aug 28 05:23:54 PDT 2025
For ternary operators in the form of "a ? true : false", if 'a' itself
returns a boolean result, the ternary operator can be omitted. Remove
redundant ternary operators to clean up the code.
Liao Yuanhong (3):
phy: hisilicon: Remove redundant ternary operators
phy: renesas: rcar-gen3-usb2: Remove redundant ternary operators
phy: rockchip: usbdp: Remove redundant ternary operators
drivers/phy/hisilicon/phy-histb-combphy.c | 2 +-
drivers/phy/renesas/phy-rcar-gen3-usb2.c | 2 +-
drivers/phy/rockchip/phy-rockchip-usbdp.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
--
2.34.1
More information about the linux-phy
mailing list