mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] usb: host: u132-hcd: remove redundant variable l
@ 2021-12-22  0:24 Colin Ian King
  0 siblings, 0 replies; only message in thread
From: Colin Ian King @ 2021-12-22  0:24 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Zheng Yongjun, linux-usb
  Cc: kernel-janitors, linux-kernel

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

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
 drivers/usb/host/u132-hcd.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c
index d879d6af5710..ea4f66e66372 100644
--- a/drivers/usb/host/u132-hcd.c
+++ b/drivers/usb/host/u132-hcd.c
@@ -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, " ..");
 			}
-- 
2.33.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-22  0:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-22  0:24 [PATCH] usb: host: u132-hcd: remove redundant variable l Colin Ian King

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

all inboxes | Powered by JetHome®