Skip to content

Commit e7ec351

Browse files
Liao Yuanhongvinodkoul
authored andcommitted
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>
1 parent da938e3 commit e7ec351

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/phy/renesas/phy-rcar-gen3-usb2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ static bool rcar_gen3_check_id(struct rcar_gen3_chan *ch)
306306
}
307307

308308
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;
310310

311311
if (ch->phy_data->no_adp_ctrl)
312312
return !!(readl(ch->base + USB2_LINECTRL1) & USB2_LINECTRL1_USB2_IDMON);

0 commit comments

Comments
 (0)