crypto: sahara - drop unnecessary default assignment
authorNicholas Mc Guire <hofrat@osadl.org>
Sat, 7 Feb 2015 11:16:46 +0000 (06:16 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 28 Feb 2015 10:31:37 +0000 (23:31 +1300)
All possible code-paths will assign ret to suitable values so this
default value is not needed.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sahara.c

index 822978d823aa9569dabbd1a568ec4d517919bedb..c38553ed792c8f8ab8c76e9400864903377d341d 100644 (file)
@@ -1047,7 +1047,7 @@ static int sahara_sha_process(struct ahash_request *req)
 {
        struct sahara_dev *dev = dev_ptr;
        struct sahara_sha_reqctx *rctx = ahash_request_ctx(req);
-       int ret = -EINPROGRESS;
+       int ret;
        unsigned long timeout;
 
        ret = sahara_sha_prepare_request(req);