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 822978d..c38553e 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);