All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] USB: host: whci: remove redundant variable t
@ 2018-07-13  9:43 ` Colin King
  0 siblings, 0 replies; 5+ messages in thread
From: Colin King @ 2018-07-13  9:43 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Johan Hovold, Felipe Balbi, linux-usb
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

Variable t is being assigned but is never used hence it is
redundant and can be removed.

Cleans up clang warning:
warning: variable 't' set but not used [-Wunused-but-set-variable]

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

diff --git a/drivers/usb/host/whci/pzl.c b/drivers/usb/host/whci/pzl.c
index bb84366f7bd3..ef52aeb02fde 100644
--- a/drivers/usb/host/whci/pzl.c
+++ b/drivers/usb/host/whci/pzl.c
@@ -96,9 +96,7 @@ static enum whc_update pzl_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);
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH] USB: host: whci: remove redundant variable t
@ 2018-07-13  9:43 ` Colin King
  0 siblings, 0 replies; 5+ messages in thread
From: Colin King @ 2018-07-13  9:43 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Johan Hovold, Felipe Balbi, linux-usb
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

Variable t is being assigned but is never used hence it is
redundant and can be removed.

Cleans up clang warning:
warning: variable 't' set but not used [-Wunused-but-set-variable]

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

diff --git a/drivers/usb/host/whci/pzl.c b/drivers/usb/host/whci/pzl.c
index bb84366f7bd3..ef52aeb02fde 100644
--- a/drivers/usb/host/whci/pzl.c
+++ b/drivers/usb/host/whci/pzl.c
@@ -96,9 +96,7 @@ static enum whc_update pzl_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);
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* USB: host: whci: remove redundant variable t
@ 2018-07-13  9:43 ` Colin King
  0 siblings, 0 replies; 5+ messages in thread
From: Colin King @ 2018-07-13  9:43 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Johan Hovold, Felipe Balbi, linux-usb
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

Variable t is being assigned but is never used hence it is
redundant and can be removed.

Cleans up clang warning:
warning: variable 't' set but not used [-Wunused-but-set-variable]

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

diff --git a/drivers/usb/host/whci/pzl.c b/drivers/usb/host/whci/pzl.c
index bb84366f7bd3..ef52aeb02fde 100644
--- a/drivers/usb/host/whci/pzl.c
+++ b/drivers/usb/host/whci/pzl.c
@@ -96,9 +96,7 @@ static enum whc_update pzl_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);
 

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH] USB: host: whci: remove redundant variable t
@ 2017-11-08 13:46 ` Colin King
  0 siblings, 0 replies; 5+ messages in thread
From: Colin King @ 2017-11-08 13:46 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Johan Hovold, Felipe Balbi, linux-kernel
  Cc: kernel-janitors, linux-usb

From: Colin Ian King <colin.king@canonical.com>

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>
---
 drivers/usb/host/whci/asl.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/usb/host/whci/asl.c b/drivers/usb/host/whci/asl.c
index c5ac9efb076a..276fb34c8efd 100644
--- 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);
 
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH] USB: host: whci: remove redundant variable t
@ 2017-11-08 13:46 ` Colin King
  0 siblings, 0 replies; 5+ messages in thread
From: Colin King @ 2017-11-08 13:46 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Johan Hovold, Felipe Balbi, linux-kernel
  Cc: kernel-janitors, linux-usb

From: Colin Ian King <colin.king@canonical.com>

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>
---
 drivers/usb/host/whci/asl.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/usb/host/whci/asl.c b/drivers/usb/host/whci/asl.c
index c5ac9efb076a..276fb34c8efd 100644
--- 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);
 
-- 
2.14.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-07-13  9:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-13  9:43 [PATCH] USB: host: whci: remove redundant variable t Colin King
2018-07-13  9:43 ` Colin King
2018-07-13  9:43 ` [PATCH] " Colin King
  -- strict thread matches above, loose matches on Subject: below --
2017-11-08 13:46 Colin King
2017-11-08 13:46 ` Colin King

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.