summaryrefslogtreecommitdiffstats
path: root/arch/x86/crypto
diff options
context:
space:
mode:
authorfiro yang <firogm@gmail.com>2015-04-23 12:12:10 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2015-04-26 08:33:17 +0200
commit21a6dd5b391e419efb227251745b08d5838f09db (patch)
tree70260743a209e70d730ef18bbab683e6d75a03ef /arch/x86/crypto
parentcrypto: aead - Fix corner case in crypto_lookup_aead (diff)
downloadlinux-21a6dd5b391e419efb227251745b08d5838f09db.tar.xz
linux-21a6dd5b391e419efb227251745b08d5838f09db.zip
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: Firo Yang <firogm@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/x86/crypto')
-rw-r--r--arch/x86/crypto/sha-mb/sha1_mb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/crypto/sha-mb/sha1_mb.c b/arch/x86/crypto/sha-mb/sha1_mb.c
index e510b1c5d690..0cb5149518ce 100644
--- a/arch/x86/crypto/sha-mb/sha1_mb.c
+++ b/arch/x86/crypto/sha-mb/sha1_mb.c
@@ -885,7 +885,8 @@ 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);