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 <[email protected]> Reviewed-by: Wolfram Sang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
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)