Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Thorsten Blum and committed by
Vinod Koul
b52b3300 28dc672a

+1 -1
+1 -1
drivers/phy/rockchip/phy-rockchip-usbdp.c
··· 980 980 981 981 if (device_property_present(dev, "maximum-speed")) { 982 982 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; 984 984 } 985 985 986 986 ret = rk_udphy_clk_init(udphy, dev);