projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28cf86f
)
crypto: scatterwalk - Remove unnecessary BUG in scatterwalk_start
author
Herbert Xu
<herbert@gondor.apana.org.au>
Tue, 12 Jul 2016 05:17:59 +0000
(13:17 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Mon, 18 Jul 2016 09:35:50 +0000
(17:35 +0800)
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>
crypto/scatterwalk.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/scatterwalk.c
b/crypto/scatterwalk.c
index 2ec5368ed649640963cbd7f8d644d5eb88dcb9bd..ddffbb3ee7120357641bb6c5ae5198566b4f4ab0 100644
(file)
--- 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);