Skip to content

Commit f6913d0

Browse files
YueHaibingherbertx
authored andcommitted
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 567be3a ("crypto: chelsio - Use multiple txq/rxq per tfm to process the requests") involved this unused variable. Signed-off-by: YueHaibing <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 6482023 commit f6913d0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/crypto/chelsio/chcr_algo.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,6 @@ static int chcr_aes_decrypt(struct skcipher_request *req)
14371437
static int chcr_device_init(struct chcr_context *ctx)
14381438
{
14391439
struct uld_ctx *u_ctx = NULL;
1440-
struct adapter *adap;
14411440
int txq_perchan, ntxq;
14421441
int err = 0, rxq_perchan;
14431442

@@ -1448,7 +1447,6 @@ static int chcr_device_init(struct chcr_context *ctx)
14481447
goto out;
14491448
}
14501449
ctx->dev = &u_ctx->dev;
1451-
adap = padap(ctx->dev);
14521450
ntxq = u_ctx->lldi.ntxq;
14531451
rxq_perchan = u_ctx->lldi.nrxq / u_ctx->lldi.nchan;
14541452
txq_perchan = ntxq / u_ctx->lldi.nchan;

0 commit comments

Comments
 (0)