summaryrefslogtreecommitdiffstats
path: root/arch/x86/crypto/glue_helper.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-05-10 07:52:26 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-06-19 08:11:54 +0200
commit8270f5d799c946d7636ef317eff990830d2fe89f (patch)
tree7ecec5723ce728de081a1b3e07e2c6e828385ee5 /arch/x86/crypto/glue_helper.c
parentcrypto: aes_ti - fix comment for MixColumns step (diff)
downloadlinux-8270f5d799c946d7636ef317eff990830d2fe89f.tar.xz
linux-8270f5d799c946d7636ef317eff990830d2fe89f.zip
crypto: glue_helper - Delete some dead code
We checked (nbytes < bsize) inside the loops so it's not possible to hit the "goto done;" here. This code is cut and paste from other slightly different loops where we don't have the check inside the loop. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/x86/crypto/glue_helper.c')
-rw-r--r--arch/x86/crypto/glue_helper.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/crypto/glue_helper.c b/arch/x86/crypto/glue_helper.c
index 24ac9fad832d..d61e57960fe0 100644
--- a/arch/x86/crypto/glue_helper.c
+++ b/arch/x86/crypto/glue_helper.c
@@ -176,9 +176,6 @@ __glue_cbc_decrypt_128bit(const struct common_glue_ctx *gctx,
src -= 1;
dst -= 1;
} while (nbytes >= func_bytes);
-
- if (nbytes < bsize)
- goto done;
}
}