Skip to content

Commit

Permalink
crypto: scatterwalk - Remove unused inline function scatterwalk_align…
Browse files Browse the repository at this point in the history
…ed()

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>
  • Loading branch information
Gaosheng Cui authored and Herbert Xu committed Sep 30, 2022
1 parent d126edd commit d438d94
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions include/crypto/scatterwalk.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d438d94

Please sign in to comment.