Skip to content

Commit 01be965

Browse files
Krishna Kurapatigregkh
authored andcommitted
usb: dwc3: core: Fix unused variable warning in core driver
While fixing a merge conflict in linux-next, hw_mode variable was left unused. Remove the unused variable in hs_phy_setup call. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Krishna Kurapati <[email protected]> Acked-by: Thinh Nguyen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 344f74c commit 01be965

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/usb/dwc3/core.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -673,11 +673,8 @@ static int dwc3_ss_phy_setup(struct dwc3 *dwc, int index)
673673

674674
static int dwc3_hs_phy_setup(struct dwc3 *dwc, int index)
675675
{
676-
unsigned int hw_mode;
677676
u32 reg;
678677

679-
hw_mode = DWC3_GHWPARAMS0_MODE(dwc->hwparams.hwparams0);
680-
681678
reg = dwc3_readl(dwc->regs, DWC3_GUSB2PHYCFG(index));
682679

683680
/* Select the HS PHY interface */

0 commit comments

Comments
 (0)