summaryrefslogtreecommitdiff
path: root/include/crypto
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-07-23 20:01:33 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2018-08-03 13:06:03 +0300
commit8c30fbe63e4eff1b221f8db70ae5c48a9331eae0 (patch)
tree9e4e0fde893784009f5372deebd1c09c2b88b2c3 /include/crypto
parent0567fc9e90b9b1c8dbce8a5468758e6206744d4a (diff)
downloadlinux-8c30fbe63e4eff1b221f8db70ae5c48a9331eae0.tar.xz
crypto: scatterwalk - remove 'chain' argument from scatterwalk_crypto_chain()
All callers pass chain=0 to scatterwalk_crypto_chain(). Remove this unneeded parameter. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/scatterwalk.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/crypto/scatterwalk.h b/include/crypto/scatterwalk.h
index 880e6be9e95e..eac72840a7d2 100644
--- a/include/crypto/scatterwalk.h
+++ b/include/crypto/scatterwalk.h
@@ -22,14 +22,8 @@
#include <linux/scatterlist.h>
static inline void scatterwalk_crypto_chain(struct scatterlist *head,
- struct scatterlist *sg,
- int chain, int num)
+ struct scatterlist *sg, int num)
{
- if (chain) {
- head->length += sg->length;
- sg = sg_next(sg);
- }
-
if (sg)
sg_chain(head, num, sg);
else