summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2016-07-12 13:17:59 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2016-07-18 17:35:50 +0800
commit2ee732d57496b8365819dfb958bc1ff04fcd4cac (patch)
tree4055b6a618c12bd2e515288ff782ee1efd809b39 /crypto
parent28cf86fafdd663cfcad3c5a5fe9869f1fa01b472 (diff)
downloadop-kernel-dev-2ee732d57496b8365819dfb958bc1ff04fcd4cac.zip
op-kernel-dev-2ee732d57496b8365819dfb958bc1ff04fcd4cac.tar.gz
crypto: scatterwalk - Remove unnecessary BUG in scatterwalk_start
Nothing bad will happen even if sg->length is zero, so there is no point in keeping this BUG_ON in scatterwalk_start. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/scatterwalk.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/crypto/scatterwalk.c b/crypto/scatterwalk.c
index 2ec5368..ddffbb3 100644
--- a/crypto/scatterwalk.c
+++ b/crypto/scatterwalk.c
@@ -33,9 +33,6 @@ static inline void memcpy_dir(void *buf, void *sgdata, size_t nbytes, int out)
void scatterwalk_start(struct scatter_walk *walk, struct scatterlist *sg)
{
walk->sg = sg;
-
- BUG_ON(!sg->length);
-
walk->offset = sg->offset;
}
EXPORT_SYMBOL_GPL(scatterwalk_start);
OpenPOWER on IntegriCloud