diff options
| author | Daniel Borkmann <dborkman@redhat.com> | 2013-06-17 05:40:04 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2013-06-17 20:08:04 -0400 |
| commit | 939cfa75a0cea97aa60cb88e3722baefdceb4e72 (patch) | |
| tree | 6fa177035a89a9f2a2c6ac03c7ed4a7b3af84072 /include | |
| parent | 32bc9b46d840d08e1c8f58eaf500d0e596c33659 (diff) | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/sctp/sctp.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index cd89510eab2a..b9f136ad5a5a 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h | |||
| @@ -575,9 +575,6 @@ for (pos = chunk->subh.fwdtsn_hdr->skip;\ | |||
| 575 | /* Round an int up to the next multiple of 4. */ | 575 | /* Round an int up to the next multiple of 4. */ |
| 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. */ | ||
| 579 | #define t_new(type, flags) kzalloc(sizeof(type), flags) | ||
| 580 | |||
| 581 | /* Compare two timevals. */ | 578 | /* Compare two timevals. */ |
| 582 | #define tv_lt(s, t) \ | 579 | #define tv_lt(s, t) \ |
| 583 | (s.tv_sec < t.tv_sec || (s.tv_sec == t.tv_sec && s.tv_usec < t.tv_usec)) | 580 | (s.tv_sec < t.tv_sec || (s.tv_sec == t.tv_sec && s.tv_usec < t.tv_usec)) |
