diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-06-17 11:40:04 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-17 17:08:04 -0700 |
commit | 939cfa75a0cea97aa60cb88e3722baefdceb4e72 (patch) | |
tree | 6fa177035a89a9f2a2c6ac03c7ed4a7b3af84072 /net/sctp/protocol.c | |
parent | 32bc9b46d840d08e1c8f58eaf500d0e596c33659 (diff) | |
download | op-kernel-dev-939cfa75a0cea97aa60cb88e3722baefdceb4e72.zip op-kernel-dev-939cfa75a0cea97aa60cb88e3722baefdceb4e72.tar.gz |
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 'net/sctp/protocol.c')
-rw-r--r-- | net/sctp/protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index eaee00c..fad7d1b 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -153,7 +153,7 @@ static void sctp_v4_copy_addrlist(struct list_head *addrlist, for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) { /* Add the address to the local list. */ - addr = t_new(struct sctp_sockaddr_entry, GFP_ATOMIC); + addr = kzalloc(sizeof(*addr), GFP_ATOMIC); if (addr) { addr->a.v4.sin_family = AF_INET; addr->a.v4.sin_port = 0; |