Skip to content

Commit 0c5375b

Browse files
Liao Yuanhongvinodkoul
authored andcommitted
phy: rockchip: usbdp: Remove redundant ternary operators
Remove redundant ternary operators to clean up the code. Signed-off-by: Liao Yuanhong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent e7ec351 commit 0c5375b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/phy/rockchip/phy-rockchip-usbdp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ static int rk_udphy_orien_sw_set(struct typec_switch_dev *sw,
666666
goto unlock_ret;
667667
}
668668

669-
udphy->flip = (orien == TYPEC_ORIENTATION_REVERSE) ? true : false;
669+
udphy->flip = orien == TYPEC_ORIENTATION_REVERSE;
670670
rk_udphy_set_typec_default_mapping(udphy);
671671
rk_udphy_usb_bvalid_enable(udphy, true);
672672

0 commit comments

Comments
 (0)