crypto: chelsio - remove set but not used variable 'adap'
authorYueHaibing <yuehaibing@huawei.com>
Sat, 14 Mar 2020 10:44:41 +0000 (10:44 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Mar 2020 03:36:52 +0000 (14:36 +1100)
drivers/crypto/chelsio/chcr_algo.c: In function 'chcr_device_init':
drivers/crypto/chelsio/chcr_algo.c:1440:18: warning:
 variable 'adap' set but not used [-Wunused-but-set-variable]

commit 567be3a5d227 ("crypto: chelsio - Use multiple txq/rxq per tfm
to process the requests") involved this unused variable.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chcr_algo.c

index 8952732c0b7de78878a10e8c23c60d931995eb0d..c29b80dd30d86c5a332654fdb6f5748883d497a8 100644 (file)
@@ -1437,7 +1437,6 @@ static int chcr_aes_decrypt(struct skcipher_request *req)
 static int chcr_device_init(struct chcr_context *ctx)
 {
        struct uld_ctx *u_ctx = NULL;
-       struct adapter *adap;
        int txq_perchan, ntxq;
        int err = 0, rxq_perchan;
 
@@ -1448,7 +1447,6 @@ static int chcr_device_init(struct chcr_context *ctx)
                        goto out;
                }
                ctx->dev = &u_ctx->dev;
-               adap = padap(ctx->dev);
                ntxq = u_ctx->lldi.ntxq;
                rxq_perchan = u_ctx->lldi.nrxq / u_ctx->lldi.nchan;
                txq_perchan = ntxq / u_ctx->lldi.nchan;