crypto: caam - remove unused keylen from session context
authorKim Phillips <kim.phillips@freescale.com>
Mon, 2 May 2011 23:27:41 +0000 (18:27 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 4 May 2011 05:15:05 +0000 (15:15 +1000)
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg.c

index 245cfe42a8ff2729ef4364e79d05e742aa6e9c04..5c16019cf3068fc6c50fd27efe5d3038969e0bf4 100644 (file)
@@ -82,7 +82,6 @@ struct caam_ctx {
        u32 alg_op;
        u8 *key;
        dma_addr_t key_phys;
-       unsigned int keylen;
        unsigned int enckeylen;
        unsigned int authkeylen;
        unsigned int split_key_len;
@@ -330,7 +329,6 @@ static int aead_authenc_setkey(struct crypto_aead *aead,
                       ctx->split_key_pad_len + enckeylen, 1);
 #endif
 
-       ctx->keylen = keylen;
        ctx->enckeylen = enckeylen;
        ctx->authkeylen = authkeylen;