Skip to content

Commit b52b330

Browse files
tobluxvinodkoul
authored andcommitted
phy: rockchip: usbdp: Remove unnecessary bool conversion
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>
1 parent 28dc672 commit b52b330

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
@@ -980,7 +980,7 @@ static int rk_udphy_parse_dt(struct rk_udphy *udphy)
980980

981981
if (device_property_present(dev, "maximum-speed")) {
982982
maximum_speed = usb_get_maximum_speed(dev);
983-
udphy->hs = maximum_speed <= USB_SPEED_HIGH ? true : false;
983+
udphy->hs = maximum_speed <= USB_SPEED_HIGH;
984984
}
985985

986986
ret = rk_udphy_clk_init(udphy, dev);

0 commit comments

Comments
 (0)