From: Tom Lendacky Date: Tue, 26 May 2015 18:06:30 +0000 (-0500) Subject: crypto: ccp - Remove unused structure field X-Git-Tag: v4.2~392^2~133 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d725332208ef13241fc435eece790c9d0ea16a4e;p=platform%2Fkernel%2Flinux-amlogic.git crypto: ccp - Remove unused structure field Remove the length field from the ccp_sg_workarea since it is unused. Signed-off-by: Tom Lendacky Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/ccp/ccp-ops.c b/drivers/crypto/ccp/ccp-ops.c index 71f2e3c..542453c 100644 --- a/drivers/crypto/ccp/ccp-ops.c +++ b/drivers/crypto/ccp/ccp-ops.c @@ -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;