]> git.karo-electronics.de Git - linux-beck.git/commitdiff
crypto: mv_cesa - drop this call to mv_hash_final from mv_hash_finup
authorPhil Sutter <phil.sutter@viprinet.com>
Thu, 5 May 2011 13:28:59 +0000 (15:28 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 May 2011 05:06:15 +0000 (15:06 +1000)
The code in mv_hash_final is actually a superset of mv_hash_finup's
body. Since the driver works fine without, drop it.

Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/mv_cesa.c

index 889c0984cfd12c5ea2f9254287f206364e0fb1c0..4aac2941e4c6d3ee21e261bf2cb98cd57f7a5f85 100644 (file)
@@ -728,9 +728,6 @@ static int mv_hash_final(struct ahash_request *req)
 
 static int mv_hash_finup(struct ahash_request *req)
 {
-       if (!req->nbytes)
-               return mv_hash_final(req);
-
        mv_update_hash_req_ctx(ahash_request_ctx(req), 1, req->nbytes);
        return mv_handle_req(&req->base);
 }