[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200208162508.29336-1-colin.king@canonical.com>
Date: Sat, 8 Feb 2020 16:25:08 +0000
From: Colin King <colin.king@...onical.com>
To: Felipe Balbi <balbi@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-usb@...r.kernel.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] usb: dwc3: debug: remove redundant call to strlen
From: Colin Ian King <colin.king@...onical.com>
The call to strlen is redundant since the return value is assigned
to variable len but not subsequently used. Remove the redundant
call.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@...onical.com>
---
drivers/usb/dwc3/debug.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/usb/dwc3/debug.h b/drivers/usb/dwc3/debug.h
index e56beb9d1e36..ee964352c8e2 100644
--- a/drivers/usb/dwc3/debug.h
+++ b/drivers/usb/dwc3/debug.h
@@ -296,8 +296,6 @@ static inline const char *dwc3_ep_event_string(char *str, size_t size,
status & DEPEVT_STATUS_TRANSFER_ACTIVE ?
" (Active)" : " (Not Active)");
- len = strlen(str);
-
/* Control Endpoints */
if (epnum <= 1) {
int phase = DEPEVT_STATUS_CONTROL_PHASE(event->status);
--
2.25.0
Powered by blists - more mailing lists