]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
phy: rockchip: usbdp: Remove unnecessary bool conversion
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 24 Feb 2025 22:03:39 +0000 (23:03 +0100)
committerVinod Koul <vkoul@kernel.org>
Wed, 12 Mar 2025 15:41:59 +0000 (16:41 +0100)
Remove the unnecessary bool conversion and simplify the code.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20250224220339.199180-2-thorsten.blum@linux.dev
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/rockchip/phy-rockchip-usbdp.c

index fff04e0fbd800dd6e98df79119aa15a3b26de5df..c066cc0a7b4f10fc3cd8779323c369360893520d 100644 (file)
@@ -980,7 +980,7 @@ static int rk_udphy_parse_dt(struct rk_udphy *udphy)
 
        if (device_property_present(dev, "maximum-speed")) {
                maximum_speed = usb_get_maximum_speed(dev);
-               udphy->hs = maximum_speed <= USB_SPEED_HIGH ? true : false;
+               udphy->hs = maximum_speed <= USB_SPEED_HIGH;
        }
 
        ret = rk_udphy_clk_init(udphy, dev);