[CRYPTO] scatterwalk: Use generic scatterlist chaining
[firefly-linux-kernel-4.4.55.git] / crypto / digest.c
index e56de6748b155eadf0f749c801e911a9a2d23577..d3e827a141f11cf458d848e0e54c042895cc169e 100644 (file)
@@ -21,7 +21,6 @@
 #include <linux/scatterlist.h>
 
 #include "internal.h"
-#include "scatterwalk.h"
 
 static int init(struct hash_desc *desc)
 {
@@ -41,7 +40,7 @@ static int update2(struct hash_desc *desc,
                return 0;
 
        for (;;) {
-               struct page *pg = sg->page;
+               struct page *pg = sg_page(sg);
                unsigned int offset = sg->offset;
                unsigned int l = sg->length;
 
@@ -77,7 +76,7 @@ static int update2(struct hash_desc *desc,
 
                if (!nbytes)
                        break;
-               sg = scatterwalk_sg_next(sg);
+               sg = sg_next(sg);
        }
 
        return 0;