summaryrefslogtreecommitdiffstats
path: root/arch/x86/crypto/blowfish_glue.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-02-13 15:58:32 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2014-02-26 22:56:54 +0100
commitb3bd5869fd65f509d96a9fcb47cdea81163a811d (patch)
treeb17732975cbf77d72a3a4183cd048a353559a4bd /arch/x86/crypto/blowfish_glue.c
parenthwrng: pixocell - Use devm_ioremap_resource() (diff)
downloadlinux-b3bd5869fd65f509d96a9fcb47cdea81163a811d.tar.xz
linux-b3bd5869fd65f509d96a9fcb47cdea81163a811d.zip
crypto: remove a duplicate checks in __cbc_decrypt()
We checked "nbytes < bsize" before so it can't happen here. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Jussi Kivilinna <jussi.kivilinna@iki.fi> Acked-by: Johannes Götzfried <johannes.goetzfried@cs.fau.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/x86/crypto/blowfish_glue.c')
-rw-r--r--arch/x86/crypto/blowfish_glue.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/crypto/blowfish_glue.c b/arch/x86/crypto/blowfish_glue.c
index 50ec333b70e6..8af519ed73d1 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 */