]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
phy: rockchip: usbdp: Remove redundant ternary operators
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Thu, 28 Aug 2025 12:23:57 +0000 (20:23 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 1 Sep 2025 12:43:54 +0000 (18:13 +0530)
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>
drivers/phy/rockchip/phy-rockchip-usbdp.c

index 010e9d2d6fac8f98b3eeceb2bb40dfe5169216ed..fba35510d88ced8f7665d230623021f0d477aaa6 100644 (file)
@@ -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);