Commit f6913d04 authored by YueHaibing's avatar YueHaibing Committed by Herbert Xu
Browse files

crypto: chelsio - remove set but not used variable 'adap'



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 567be3a5 ("crypto: chelsio - Use multiple txq/rxq per tfm
to process the requests") involved this unused variable.

Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 6482023b
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;