diff options
-rw-r--r-- | include/net/sctp/sctp.h | 2 | ||||
-rw-r--r-- | net/sctp/protocol.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index df85a0c0f2d5..cd89510eab2a 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h | |||
@@ -576,7 +576,7 @@ for (pos = chunk->subh.fwdtsn_hdr->skip;\ | |||
576 | #define WORD_ROUND(s) (((s)+3)&~3) | 576 | #define WORD_ROUND(s) (((s)+3)&~3) |
577 | 577 | ||
578 | /* Make a new instance of type. */ | 578 | /* Make a new instance of type. */ |
579 | #define t_new(type, flags) (type *)kzalloc(sizeof(type), flags) | 579 | #define t_new(type, flags) kzalloc(sizeof(type), flags) |
580 | 580 | ||
581 | /* Compare two timevals. */ | 581 | /* Compare two timevals. */ |
582 | #define tv_lt(s, t) \ | 582 | #define tv_lt(s, t) \ |
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"); |