From: Nicholas Mc Guire Date: Sat, 7 Feb 2015 11:16:46 +0000 (-0500) Subject: crypto: sahara - drop unnecessary default assignment X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=df586cbb6be97aaf55b9a01e1d0ab01bc03d70d1;p=openwrt%2Fstaging%2Fblogic.git crypto: sahara - drop unnecessary default assignment All possible code-paths will assign ret to suitable values so this default value is not needed. Signed-off-by: Nicholas Mc Guire Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/sahara.c b/drivers/crypto/sahara.c index 822978d823aa..c38553ed792c 100644 --- a/drivers/crypto/sahara.c +++ b/drivers/crypto/sahara.c @@ -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);