]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
chcr: remove set but not used variable 'status'
authorYueHaibing <yuehaibing@huawei.com>
Sat, 14 Mar 2020 10:51:20 +0000 (18:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2020 09:02:04 +0000 (02:02 -0700)
drivers/crypto/chelsio/chcr_ktls.c: In function chcr_ktls_cpl_set_tcb_rpl:
drivers/crypto/chelsio/chcr_ktls.c:662:11: warning:
 variable status set but not used [-Wunused-but-set-variable]

commit 8a30923e1598 ("cxgb4/chcr: Save tx keys and handle HW response")
involved this unused variable, remove it.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/crypto/chelsio/chcr_ktls.c

index f0c3834eda4f2d5ff41a4ff9f776a8d603ec6b76..00099e793e631624efac78ee47a7a9933572c3d8 100644 (file)
@@ -659,10 +659,9 @@ int chcr_ktls_cpl_set_tcb_rpl(struct adapter *adap, unsigned char *input)
        const struct cpl_set_tcb_rpl *p = (void *)input;
        struct chcr_ktls_info *tx_info = NULL;
        struct tid_info *t;
-       u32 tid, status;
+       u32 tid;
 
        tid = GET_TID(p);
-       status = p->status;
 
        t = &adap->tids;
        tx_info = lookup_tid(t, tid);