summaryrefslogtreecommitdiff
path: root/include/crypto
diff options
context:
space:
mode:
authorGaosheng Cui <cuigaosheng1@huawei.com>2022-09-23 17:08:23 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2022-09-30 13:59:13 +0800
commitd438d94d6483c379935d94a7dcc2d1bf9cdf0803 (patch)
tree4b7fe76ff974048525e1ca61672155755fdb7c9f /include/crypto
parentd126edd77148e0eacf27039a14b32d1c5ac51c6e (diff)
downloadlinux-rpi-d438d94d6483c379935d94a7dcc2d1bf9cdf0803.tar.gz
linux-rpi-d438d94d6483c379935d94a7dcc2d1bf9cdf0803.tar.bz2
linux-rpi-d438d94d6483c379935d94a7dcc2d1bf9cdf0803.zip
crypto: scatterwalk - Remove unused inline function scatterwalk_aligned()
The scatterwalk_aligned() are no longer used since removing blkcipher and ablkcipher support, all use of it has been removed since commit d63007eb954e ("crypto: ablkcipher - remove deprecated and unused ablkcipher support"), so remove it. Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/scatterwalk.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/crypto/scatterwalk.h b/include/crypto/scatterwalk.h
index 6407b4b61350..ccdb05f68a75 100644
--- a/include/crypto/scatterwalk.h
+++ b/include/crypto/scatterwalk.h
@@ -46,12 +46,6 @@ static inline void scatterwalk_advance(struct scatter_walk *walk,
walk->offset += nbytes;
}
-static inline unsigned int scatterwalk_aligned(struct scatter_walk *walk,
- unsigned int alignmask)
-{
- return !(walk->offset & alignmask);
-}
-
static inline struct page *scatterwalk_page(struct scatter_walk *walk)
{
return sg_page(walk->sg) + (walk->offset >> PAGE_SHIFT);