Skip to contentSkip to conversation

usb: host: oxu210hp-hcd: remove unused variable

PATCH New Sudip Mukherjee 1 participant 1 message Jan 12, 2017 USB

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 usb: host: oxu210hp-hcd: remove unused variable

From: Sudip Mukherjee <[email protected]>

The variable live was assigned the host controller running status but it was never used or checked after that.

---

v2: added From: tag

 drivers/usb/host/oxu210hp-hcd.c | 2 --
 1 file changed, 2 deletions(-)
drivers/usb/host/oxu210hp-hcd.c +0 -2
index 4e4d601..bcf531c 100644
@@ -2288,9 +2288,7 @@ static void scan_periodic(struct oxu_hcd *oxu)
 
 		while (q.ptr != NULL) {
 			union ehci_shadow temp;
-			int live;
 
-			live = HC_IS_RUNNING(oxu_to_hcd(oxu)->state);
 			switch (type) {
 			case Q_TYPE_QH:
 				/* handle any completions */
Signature · 1 line
1.9.1