net: sctp: get rid of t_new macro for kzalloc
t_new rather obfuscates things where everyone else is using actual function names instead of that macro, so replace it with kzalloc, which is the function t_new wraps. Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Acked-by: Vlad Yasevich <vyasevich@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
32bc9b46d8
commit
939cfa75a0
7 changed files with 7 additions and 9 deletions
|
@ -575,9 +575,6 @@ for (pos = chunk->subh.fwdtsn_hdr->skip;\
|
|||
/* Round an int up to the next multiple of 4. */
|
||||
#define WORD_ROUND(s) (((s)+3)&~3)
|
||||
|
||||
/* Make a new instance of type. */
|
||||
#define t_new(type, flags) kzalloc(sizeof(type), flags)
|
||||
|
||||
/* Compare two timevals. */
|
||||
#define tv_lt(s, t) \
|
||||
(s.tv_sec < t.tv_sec || (s.tv_sec == t.tv_sec && s.tv_usec < t.tv_usec))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue