提交 d7253322 编写于 作者: T Tom Lendacky 提交者: Herbert Xu

crypto: ccp - Remove unused structure field

Remove the length field from the ccp_sg_workarea since it is unused.
Signed-off-by: NTom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 d921620e
...@@ -53,7 +53,6 @@ struct ccp_dm_workarea { ...@@ -53,7 +53,6 @@ struct ccp_dm_workarea {
struct ccp_sg_workarea { struct ccp_sg_workarea {
struct scatterlist *sg; struct scatterlist *sg;
unsigned int nents; unsigned int nents;
unsigned int length;
struct scatterlist *dma_sg; struct scatterlist *dma_sg;
struct device *dma_dev; struct device *dma_dev;
...@@ -497,7 +496,6 @@ static int ccp_init_sg_workarea(struct ccp_sg_workarea *wa, struct device *dev, ...@@ -497,7 +496,6 @@ static int ccp_init_sg_workarea(struct ccp_sg_workarea *wa, struct device *dev,
return 0; return 0;
wa->nents = sg_nents(sg); wa->nents = sg_nents(sg);
wa->length = sg->length;
wa->bytes_left = len; wa->bytes_left = len;
wa->sg_used = 0; wa->sg_used = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册