diff options
author | Liao Yuanhong <liaoyuanhong@vivo.com> | 2025-08-28 20:23:57 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2025-09-01 18:13:54 +0530 |
commit | 0c5375b06060fa40a8f8ce2e926bde125fdf6c3b (patch) | |
tree | 7591583aacbaf6e11ee78511bfab1f5782366264 | |
parent | e7ec351347b6325f872b9059453c9c9bf22c159c (diff) |
phy: rockchip: usbdp: 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-4-liaoyuanhong@vivo.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r-- | drivers/phy/rockchip/phy-rockchip-usbdp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/rockchip/phy-rockchip-usbdp.c b/drivers/phy/rockchip/phy-rockchip-usbdp.c index 010e9d2d6fac..fba35510d88c 100644 --- a/drivers/phy/rockchip/phy-rockchip-usbdp.c +++ b/drivers/phy/rockchip/phy-rockchip-usbdp.c @@ -666,7 +666,7 @@ static int rk_udphy_orien_sw_set(struct typec_switch_dev *sw, goto unlock_ret; } - udphy->flip = (orien == TYPEC_ORIENTATION_REVERSE) ? true : false; + udphy->flip = orien == TYPEC_ORIENTATION_REVERSE; rk_udphy_set_typec_default_mapping(udphy); rk_udphy_usb_bvalid_enable(udphy, true); |