Skip to content

Commit bcde1f7

Browse files
horiagherbertx
authored andcommitted
crypto: caam - remove unused sg_to_sec4_sg_len()
sg_to_sec4_sg_len() is no longer used since commit 479bcc7 ("crypto: caam - Convert authenc to new AEAD interface") Its functionality has been superseded by the usage of sg_nents_for_len() returning the number of S/G entries corresponding to the provided length. Signed-off-by: Horia Geantă <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent c7a91eb commit bcde1f7

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

drivers/crypto/caam/sg_sw_sec4.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,3 @@ static inline void sg_to_sec4_sg_last(struct scatterlist *sg, int sg_count,
5858
sec4_sg_ptr = sg_to_sec4_sg(sg, sg_count, sec4_sg_ptr, offset);
5959
sec4_sg_ptr->len |= cpu_to_caam32(SEC4_SG_LEN_FIN);
6060
}
61-
62-
static inline struct sec4_sg_entry *sg_to_sec4_sg_len(
63-
struct scatterlist *sg, unsigned int total,
64-
struct sec4_sg_entry *sec4_sg_ptr)
65-
{
66-
do {
67-
unsigned int len = min(sg_dma_len(sg), total);
68-
69-
dma_to_sec4_sg_one(sec4_sg_ptr, sg_dma_address(sg), len, 0);
70-
sec4_sg_ptr++;
71-
sg = sg_next(sg);
72-
total -= len;
73-
} while (total);
74-
return sec4_sg_ptr - 1;
75-
}

0 commit comments

Comments
 (0)