Skip to contentSkip to conversation

usb: host: u132-hcd: remove redundant variable l

PATCH New Colin Ian King 1 participant 1 message Dec 22, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: host: u132-hcd: remove redundant variable l

Variable l is being used to summate w, however the value is never used afterwards. The summation is redundant so remove variable l.

---
 drivers/usb/host/u132-hcd.c | 2 --
 1 file changed, 2 deletions(-)
drivers/usb/host/u132-hcd.c +0 -2
index d879d6af5710..ea4f66e66372 100644
@@ -2335,14 +2335,12 @@ static int u132_urb_enqueue(struct usb_hcd *hcd, struct urb *urb,
 			char data[30 * 3 + 4];
 			char *d = data;
 			int m = (sizeof(data) - 1) / 3;
-			int l = 0;
 			data[0] = 0;
 			while (urb_size-- > 0) {
 				if (i > m) {
 				} else if (i++ < m) {
 					int w = sprintf(d, " %02X", *b++);
 					d += w;
-					l += w;
 				} else
 					d += sprintf(d, " ..");
 			}
Signature · 1 line
2.33.1