Skip to content

Commit d438d94

Browse files
gscuiherbertx
authored andcommitted
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 d63007e ("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>
1 parent d126edd commit d438d94

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

include/crypto/scatterwalk.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,6 @@ static inline void scatterwalk_advance(struct scatter_walk *walk,
4646
walk->offset += nbytes;
4747
}
4848

49-
static inline unsigned int scatterwalk_aligned(struct scatter_walk *walk,
50-
unsigned int alignmask)
51-
{
52-
return !(walk->offset & alignmask);
53-
}
54-
5549
static inline struct page *scatterwalk_page(struct scatter_walk *walk)
5650
{
5751
return sg_page(walk->sg) + (walk->offset >> PAGE_SHIFT);

0 commit comments

Comments
 (0)