Skip to content

Commit d725332

Browse files
tlendackyherbertx
authored andcommitted
crypto: ccp - Remove unused structure field
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>
1 parent d921620 commit d725332

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎drivers/crypto/ccp/ccp-ops.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ struct ccp_dm_workarea {
5353
struct ccp_sg_workarea {
5454
struct scatterlist *sg;
5555
unsigned int nents;
56-
unsigned int length;
5756

5857
struct scatterlist *dma_sg;
5958
struct device *dma_dev;
@@ -497,7 +496,6 @@ static int ccp_init_sg_workarea(struct ccp_sg_workarea *wa, struct device *dev,
497496
return 0;
498497

499498
wa->nents = sg_nents(sg);
500-
wa->length = sg->length;
501499
wa->bytes_left = len;
502500
wa->sg_used = 0;
503501

0 commit comments

Comments
 (0)