From: Gaosheng Cui Date: Fri, 23 Sep 2022 09:08:23 +0000 (+0800) Subject: crypto: scatterwalk - Remove unused inline function scatterwalk_aligned() X-Git-Tag: v6.1-rc1~81^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d438d94d6483c379935d94a7dcc2d1bf9cdf0803;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Herbert Xu --- diff --git a/include/crypto/scatterwalk.h b/include/crypto/scatterwalk.h index 6407b4b61350d..ccdb05f68a75c 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);