mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
net: sctp: remove cast for kmalloc/kzalloc return value
remove cast for kmalloc/kzalloc return value. Signed-off-by: Zhang Yanfei <[email protected]> Acked-by: Neil Horman <[email protected]> Cc: Vlad Yasevich <[email protected]> Cc: Sridhar Samudrala <[email protected]> Cc: Neil Horman <[email protected]> Cc: Andrew Morton <[email protected]> Cc: [email protected] Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
6e51c9ff6a
commit
3b77d6617a
2 changed files with 2 additions and 2 deletions
|
|
@ -1403,7 +1403,7 @@ SCTP_STATIC __init int sctp_init(void)
|
|||
|
||||
/* Allocate and initialize the endpoint hash table. */
|
||||
sctp_ep_hashsize = 64;
|
||||
sctp_ep_hashtable = (struct sctp_hashbucket *)
|
||||
sctp_ep_hashtable =
|
||||
kmalloc(64 * sizeof(struct sctp_hashbucket), GFP_KERNEL);
|
||||
if (!sctp_ep_hashtable) {
|
||||
pr_err("Failed endpoint_hash alloc\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue