crypto: scatterwalk - remove scatterwalk_samebuf()
authorEric Biggers <ebiggers@google.com>
Mon, 23 Jul 2018 17:04:28 +0000 (10:04 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Aug 2018 10:06:04 +0000 (18:06 +0800)
scatterwalk_samebuf() is never used.  Remove it.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/scatterwalk.h

index eac72840a7d2ef840e3c24b4c2f7ecffa8765df6..a66c127a20edb2b833025476f70f80e7fea68d6e 100644 (file)
@@ -30,13 +30,6 @@ static inline void scatterwalk_crypto_chain(struct scatterlist *head,
                sg_mark_end(head);
 }
 
-static inline unsigned long scatterwalk_samebuf(struct scatter_walk *walk_in,
-                                               struct scatter_walk *walk_out)
-{
-       return !(((sg_page(walk_in->sg) - sg_page(walk_out->sg)) << PAGE_SHIFT) +
-                (int)(walk_in->offset - walk_out->offset));
-}
-
 static inline unsigned int scatterwalk_pagelen(struct scatter_walk *walk)
 {
        unsigned int len = walk->sg->offset + walk->sg->length - walk->offset;