[PATCH 0/3] phy: Remove redundant ternary operators

Liao Yuanhong posted 3 patches 1 month ago
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(-)
[PATCH 0/3] phy: Remove redundant ternary operators
Posted by Liao Yuanhong 1 month ago
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
Re: (subset) [PATCH 0/3] phy: Remove redundant ternary operators
Posted by Vinod Koul 1 month ago
On Thu, 28 Aug 2025 20:23:54 +0800, Liao Yuanhong wrote:
> 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
> 
> [...]

Applied, thanks!

[1/3] phy: hisilicon: Remove redundant ternary operators
      commit: da938e39a81642748db3ec2385e8a53fe03d9bd1
[3/3] phy: rockchip: usbdp: Remove redundant ternary operators
      commit: 0c5375b06060fa40a8f8ce2e926bde125fdf6c3b

Best regards,
-- 
~Vinod