projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2124c88
)
USB: host: whci: remove redundant variable t
author
Colin Ian King
<colin.king@canonical.com>
Wed, 8 Nov 2017 13:46:36 +0000
(13:46 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 28 Nov 2017 14:08:43 +0000
(15:08 +0100)
Variable t is assigned but never read, it is redundant and therefore
can be removed. Cleans up clang warning:
drivers/usb/host/whci/asl.c:106:3: warning: Value stored to 't' is
never read
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/whci/asl.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/whci/asl.c
b/drivers/usb/host/whci/asl.c
index
c5ac9ef
..
276fb34
100644
(file)
--- a/
drivers/usb/host/whci/asl.c
+++ b/
drivers/usb/host/whci/asl.c
@@
-90,9
+90,7
@@
static uint32_t process_qset(struct whc *whc, struct whc_qset *qset)
while (qset->ntds) {
struct whc_qtd *td;
- int t;
- t = qset->td_start;
td = &qset->qtd[qset->td_start];
status = le32_to_cpu(td->status);