Skip to contentSkip to conversation

Clean up unnecessary void* pointer cast.

PATCH In review Firo Yang 1 participant 1 message Apr 22, 2015

Subsystems (3)
lore
Share & tools
lore

Firo Yang

author
#0 lore raw

PATCH 15/16 Clean up unnecessary void* pointer cast.

---
 arch/x86/crypto/sha-mb/sha1_mb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/crypto/sha-mb/sha1_mb.c +1 -1
index e510b1c..77357fb 100644
@@ -885,7 +885,7 @@ static int __init sha1_mb_mod_init(void)
 		INIT_DELAYED_WORK(&cpu_state->flush, mcryptd_flusher);
 		cpu_state->cpu = cpu;
 		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)
 			goto err2;
 		sha1_ctx_mgr_init(cpu_state->mgr);
Signature · 1 line
2.1.0