summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrishna Kurapati <quic_kriskura@quicinc.com>2024-05-06 10:49:39 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-11 10:40:22 +0300
commit01be965ce5ab028c15fa64bbfdd59aac87a374ca (patch)
tree8234f332b185c297e62bf555ea0da8212368154a
parent344f74cf531d90245e1296b3ffbaa7df99dd18f6 (diff)
downloadlinux-01be965ce5ab028c15fa64bbfdd59aac87a374ca.tar.xz
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 <lkp@intel.com> Closes: https://lore.kernel.org/all/202405030439.AH8NR0Mg-lkp@intel.com/ Signed-off-by: Krishna Kurapati <quic_kriskura@quicinc.com> Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Link: https://lore.kernel.org/r/20240506074939.1833835-1-quic_kriskura@quicinc.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/dwc3/core.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 5c6a7e99a4b9..7ee61a89520b 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -673,11 +673,8 @@ static int dwc3_ss_phy_setup(struct dwc3 *dwc, int index)
static int dwc3_hs_phy_setup(struct dwc3 *dwc, int index)
{
- unsigned int hw_mode;
u32 reg;
- hw_mode = DWC3_GHWPARAMS0_MODE(dwc->hwparams.hwparams0);
-
reg = dwc3_readl(dwc->regs, DWC3_GUSB2PHYCFG(index));
/* Select the HS PHY interface */