public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] usb: dwc3: core: Fix unused variable warning in core driver
@ 2024-05-06  7:49 Krishna Kurapati
  2024-05-08 23:08 ` Thinh Nguyen
  0 siblings, 1 reply; 7+ messages in thread
From: Krishna Kurapati @ 2024-05-06  7:49 UTC (permalink / raw)
  To: Thinh Nguyen, Greg Kroah-Hartman
  Cc: linux-kernel, linux-usb, quic_ppratap, quic_jackp,
	Krishna Kurapati, kernel test robot

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>
---
Changes in v2:
Added reported by and closes tags.

 drivers/usb/dwc3/core.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index 8b6f7769fcd5..7f176ba25354 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -676,11 +676,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 */
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-05-11  7:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-06  7:49 [PATCH v2] usb: dwc3: core: Fix unused variable warning in core driver Krishna Kurapati
2024-05-08 23:08 ` Thinh Nguyen
2024-05-10  9:28   ` Greg Kroah-Hartman
2024-05-10 19:26     ` Krishna Kurapati PSSNV
2024-05-11  1:07       ` Thinh Nguyen
2024-05-11  7:40         ` Greg Kroah-Hartman
2024-05-11  7:40       ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox