aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sctp
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 /include/net/sctp
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 'include/net/sctp')
-rw-r--r--include/net/sctp/sctp.h2
1 files changed, 1 insertions, 1 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) \