OSDN Git Service

USB: host: whci: remove redundant variable t
authorColin Ian King <colin.king@canonical.com>
Fri, 13 Jul 2018 09:43:01 +0000 (10:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Jul 2018 13:41:56 +0000 (15:41 +0200)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/whci/pzl.c

index bb84366..ef52aeb 100644 (file)
@@ -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);