mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
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
|
@ -162,7 +162,7 @@ int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new,
|
|||
struct sctp_sockaddr_entry *addr;
|
||||
|
||||
/* Add the address to the bind address list. */
|
||||
addr = t_new(struct sctp_sockaddr_entry, gfp);
|
||||
addr = kzalloc(sizeof(*addr), gfp);
|
||||
if (!addr)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue