crypto: sha-mb - remove a bogus NULL check

This can't be NULL and we dereferenced it earlier.  Smatch used to
ignore these things where the pointer was obviously non-NULL but I've
found that sometimes the intention was to check something else so we
were maybe missing bugs.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Dan Carpenter 2014-11-22 21:36:28 +03:00 committed by Herbert Xu
parent b1c9952afe
commit 5d1b3c98ec

View File

@ -204,8 +204,7 @@ static struct sha1_hash_ctx *sha1_ctx_mgr_resubmit(struct sha1_ctx_mgr *mgr, str
continue;
}
if (ctx)
ctx->status = HASH_CTX_STS_IDLE;
ctx->status = HASH_CTX_STS_IDLE;
return ctx;
}