[PATCH 24/25] [crypto] BUG to BUG_ON changes

From: Stoyan Gaydarov
Date: Tue Mar 10 2009 - 01:19:38 EST


Signed-off-by: Stoyan Gaydarov <stoyboyker@xxxxxxxxx>
---
drivers/crypto/ixp4xx_crypto.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/drivers/crypto/ixp4xx_crypto.c b/drivers/crypto/ixp4xx_crypto.c
index d9e751b..12b09cf 100644
--- a/drivers/crypto/ixp4xx_crypto.c
+++ b/drivers/crypto/ixp4xx_crypto.c
@@ -1037,9 +1037,7 @@ static int aead_perform(struct aead_request *req, int encrypt,
BUG_ON(ivsize && !req->iv);
memcpy(crypt->iv, req->iv, ivsize);

- if (req->src != req->dst) {
- BUG(); /* -ENOTSUP because of my lazyness */
- }
+ BUG_ON(req->src != req->dst); /* -ENOTSUP because of my lazyness */

req_ctx->buffer = dma_pool_alloc(buffer_pool, flags, &crypt->src_buf);
if (!req_ctx->buffer)
--
1.6.1.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/