summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-07-23 10:04:28 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2018-08-03 18:06:04 +0800
commit3dd8cc00c34ab9cde4bcc808ebc607e7b9861280 (patch)
treeadf006e4a60f0a6aa459c978bbc6a48ec946f7b6 /include/crypto
parent8c30fbe63e4eff1b221f8db70ae5c48a9331eae0 (diff)
downloadlinux-3dd8cc00c34ab9cde4bcc808ebc607e7b9861280.tar.bz2
crypto: scatterwalk - remove scatterwalk_samebuf()
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>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/scatterwalk.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/crypto/scatterwalk.h b/include/crypto/scatterwalk.h
index eac72840a7d2..a66c127a20ed 100644
--- a/include/crypto/scatterwalk.h
+++ b/include/crypto/scatterwalk.h
@@ -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;