crypto: ccp - Remove unused structure field
authorTom Lendacky <thomas.lendacky@amd.com>
Tue, 26 May 2015 18:06:30 +0000 (13:06 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 27 May 2015 09:51:54 +0000 (17:51 +0800)
Remove the length field from the ccp_sg_workarea since it is unused.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-ops.c

index 71f2e3c8942416b719a53c84a1ae124d0d4363b9..542453c9ba1c87c2885090a3ec280b8df30ccb60 100644 (file)
@@ -53,7 +53,6 @@ struct ccp_dm_workarea {
 struct ccp_sg_workarea {
        struct scatterlist *sg;
        unsigned int nents;
-       unsigned int length;
 
        struct scatterlist *dma_sg;
        struct device *dma_dev;
@@ -497,7 +496,6 @@ static int ccp_init_sg_workarea(struct ccp_sg_workarea *wa, struct device *dev,
                return 0;
 
        wa->nents = sg_nents(sg);
-       wa->length = sg->length;
        wa->bytes_left = len;
        wa->sg_used = 0;