From: Dan Carpenter Date: Wed, 10 May 2017 05:52:26 +0000 (+0300) Subject: crypto: glue_helper - Delete some dead code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8270f5d799c946d7636ef317eff990830d2fe89f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Herbert Xu --- 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; } }