mirror of https://github.com/torvalds/linux.git
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>
This commit is contained in:
parent
e7ec351347
commit
0c5375b060
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue