aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/protocol.c
diff options
context:
space:
mode:
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>2013-03-12 01:39:47 -0400
committerJiri Kosina <jkosina@suse.cz>2013-03-18 09:16:00 -0400
commit3b77d6617a68dbcafc9cc95d80522c3b0c00ad80 (patch)
treee298681cfb71fab02a452149490791a3c2ad34cf /net/sctp/protocol.c
parent6e51c9ff6a5f37c4baf3dfab579e8aed33b8f427 (diff)
net: sctp: remove cast for kmalloc/kzalloc return value
remove cast for kmalloc/kzalloc return value. Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Cc: Vlad Yasevich <vyasevich@gmail.com> Cc: Sridhar Samudrala <sri@us.ibm.com> Cc: Neil Horman <nhorman@tuxdriver.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: linux-sctp@vger.kernel.org Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'net/sctp/protocol.c')
-rw-r--r--net/sctp/protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index 1c2e46cb9191..eaee00c61139 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -1403,7 +1403,7 @@ SCTP_STATIC __init int sctp_init(void)
1403 1403
1404 /* Allocate and initialize the endpoint hash table. */ 1404 /* Allocate and initialize the endpoint hash table. */
1405 sctp_ep_hashsize = 64; 1405 sctp_ep_hashsize = 64;
1406 sctp_ep_hashtable = (struct sctp_hashbucket *) 1406 sctp_ep_hashtable =
1407 kmalloc(64 * sizeof(struct sctp_hashbucket), GFP_KERNEL); 1407 kmalloc(64 * sizeof(struct sctp_hashbucket), GFP_KERNEL);
1408 if (!sctp_ep_hashtable) { 1408 if (!sctp_ep_hashtable) {
1409 pr_err("Failed endpoint_hash alloc\n"); 1409 pr_err("Failed endpoint_hash alloc\n");