crypto: scatterwalk - Remove unused inline function scatterwalk_aligned()
authorGaosheng Cui <cuigaosheng1@huawei.com>
Fri, 23 Sep 2022 09:08:23 +0000 (17:08 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Sep 2022 05:59:13 +0000 (13:59 +0800)
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>
include/crypto/scatterwalk.h

index 6407b4b..ccdb05f 100644 (file)
@@ -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);