[PATCH 26/30] crypto: scatterwalk - Remove unnecessary BUG in scatterwalk_start

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxx>
---

 crypto/scatterwalk.c |    3 ---
 1 file changed, 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);
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux