Commit 21a6dd5b authored by firo yang's avatar firo yang Committed by Herbert Xu

crypto: sha1-mb - Remove pointless cast

Since kzalloc() returns a void pointer, we don't need to cast the
return value in arch/x86/crypto/sha-mb/sha1_mb.c::sha1_mb_mod_init().
Signed-off-by: default avatarFiro Yang <firogm@gmail.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 80f7b355
...@@ -885,7 +885,8 @@ static int __init sha1_mb_mod_init(void) ...@@ -885,7 +885,8 @@ static int __init sha1_mb_mod_init(void)
INIT_DELAYED_WORK(&cpu_state->flush, mcryptd_flusher); INIT_DELAYED_WORK(&cpu_state->flush, mcryptd_flusher);
cpu_state->cpu = cpu; cpu_state->cpu = cpu;
cpu_state->alg_state = &sha1_mb_alg_state; cpu_state->alg_state = &sha1_mb_alg_state;
cpu_state->mgr = (struct sha1_ctx_mgr *) kzalloc(sizeof(struct sha1_ctx_mgr), GFP_KERNEL); cpu_state->mgr = kzalloc(sizeof(struct sha1_ctx_mgr),
GFP_KERNEL);
if (!cpu_state->mgr) if (!cpu_state->mgr)
goto err2; goto err2;
sha1_ctx_mgr_init(cpu_state->mgr); sha1_ctx_mgr_init(cpu_state->mgr);
......
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