i40e: store msg_enable in the right size
[firefly-linux-kernel-4.4.55.git] / drivers / crypto / ixp4xx_crypto.c
index f757a0f428bde807a8e5402af8404e98314c2bf8..48f453555f1fe4572d4b3619b41e8b7dbb30d8a7 100644 (file)
@@ -784,7 +784,7 @@ static struct buffer_desc *chainup_buffers(struct device *dev,
                struct buffer_desc *buf, gfp_t flags,
                enum dma_data_direction dir)
 {
-       for (;nbytes > 0; sg = scatterwalk_sg_next(sg)) {
+       for (; nbytes > 0; sg = sg_next(sg)) {
                unsigned len = min(nbytes, sg->length);
                struct buffer_desc *next_buf;
                u32 next_buf_phys;
@@ -982,7 +982,7 @@ static int hmac_inconsistent(struct scatterlist *sg, unsigned start,
                        break;
 
                offset += sg->length;
-               sg = scatterwalk_sg_next(sg);
+               sg = sg_next(sg);
        }
        return (start + nbytes > offset + sg->length);
 }