Commit b52b3300 authored by Thorsten Blum's avatar Thorsten Blum Committed by Vinod Koul
Browse files

phy: rockchip: usbdp: Remove unnecessary bool conversion



Remove the unnecessary bool conversion and simplify the code.

Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: default avatarHeiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20250224220339.199180-2-thorsten.blum@linux.dev


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 28dc672a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);