From b3bd5869fd65f509d96a9fcb47cdea81163a811d Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Thu, 13 Feb 2014 17:58:32 +0300 Subject: crypto: remove a duplicate checks in __cbc_decrypt() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We checked "nbytes < bsize" before so it can't happen here. Signed-off-by: Dan Carpenter Acked-by: Jussi Kivilinna Acked-by: Johannes Götzfried Signed-off-by: Herbert Xu --- arch/x86/crypto/blowfish_glue.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'arch/x86/crypto/blowfish_glue.c') diff --git a/arch/x86/crypto/blowfish_glue.c b/arch/x86/crypto/blowfish_glue.c index 50ec333..8af519e 100644 --- a/arch/x86/crypto/blowfish_glue.c +++ b/arch/x86/crypto/blowfish_glue.c @@ -223,9 +223,6 @@ static unsigned int __cbc_decrypt(struct blkcipher_desc *desc, src -= 1; dst -= 1; } while (nbytes >= bsize * 4); - - if (nbytes < bsize) - goto done; } /* Handle leftovers */ -- cgit v1.1