crypto: glue_helper - Delete some dead code
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 10 May 2017 05:52:26 +0000 (08:52 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 19 Jun 2017 06:11:54 +0000 (14:11 +0800)
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>
arch/x86/crypto/glue_helper.c

index 24ac9fad832d99df75ba386ff87a61ef6b23d798..d61e57960fe0d6629eaddef46ef583a60e28a604 100644 (file)
@@ -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;
                }
        }