Commit 468577abe37ff7b453a9ac613e0ea155349203ae
1 parent
102d49d3d0
Exists in
master
and in
7 other branches
[CRYPTO] scatterwalk: Use generic scatterlist chaining
This patch converts the crypto scatterwalk code to use the generic scatterlist chaining rather the version specific to crypto. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Showing 4 changed files with 3 additions and 9 deletions Side-by-side Diff
crypto/digest.c
... | ... | @@ -21,7 +21,6 @@ |
21 | 21 | #include <linux/scatterlist.h> |
22 | 22 | |
23 | 23 | #include "internal.h" |
24 | -#include "scatterwalk.h" | |
25 | 24 | |
26 | 25 | static int init(struct hash_desc *desc) |
27 | 26 | { |
... | ... | @@ -77,7 +76,7 @@ |
77 | 76 | |
78 | 77 | if (!nbytes) |
79 | 78 | break; |
80 | - sg = scatterwalk_sg_next(sg); | |
79 | + sg = sg_next(sg); | |
81 | 80 | } |
82 | 81 | |
83 | 82 | return 0; |
crypto/hmac.c
crypto/scatterwalk.c
crypto/scatterwalk.h
... | ... | @@ -20,11 +20,6 @@ |
20 | 20 | |
21 | 21 | #include "internal.h" |
22 | 22 | |
23 | -static inline struct scatterlist *scatterwalk_sg_next(struct scatterlist *sg) | |
24 | -{ | |
25 | - return (++sg)->length ? sg : (void *) sg_page(sg); | |
26 | -} | |
27 | - | |
28 | 23 | static inline unsigned long scatterwalk_samebuf(struct scatter_walk *walk_in, |
29 | 24 | struct scatter_walk *walk_out) |
30 | 25 | { |