Commit 5d1b3c98 authored by Dan Carpenter's avatar Dan Carpenter Committed by Herbert Xu
Browse files

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: default avatarDan Carpenter <>
Acked-by: default avatarTim Chen <>
Signed-off-by: default avatarHerbert Xu <>
parent b1c9952a
......@@ -204,8 +204,7 @@ static struct sha1_hash_ctx *sha1_ctx_mgr_resubmit(struct sha1_ctx_mgr *mgr, str
if (ctx)
ctx->status = HASH_CTX_STS_IDLE;
ctx->status = HASH_CTX_STS_IDLE;
return ctx;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment