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

Configure Feed

Select the types of activity you want to include in your feed.

phy: renesas: rcar-gen3-usb2: Remove redundant ternary operators

Remove redundant ternary operators to clean up the code.

Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/20250828122401.17441-3-liaoyuanhong@vivo.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Liao Yuanhong and committed by
Vinod Koul
e7ec3513 da938e39

+1 -1
+1 -1
drivers/phy/renesas/phy-rcar-gen3-usb2.c
··· 306 306 } 307 307 308 308 if (!ch->uses_otg_pins) 309 - return (ch->dr_mode == USB_DR_MODE_HOST) ? false : true; 309 + return ch->dr_mode != USB_DR_MODE_HOST; 310 310 311 311 if (ch->phy_data->no_adp_ctrl) 312 312 return !!(readl(ch->base + USB2_LINECTRL1) & USB2_LINECTRL1_USB2_IDMON);