net: sctp: get rid of t_new macro for kzalloc
[deliverable/linux.git] / net / sctp / endpointola.c
index 5fbd7bc6bb11077f8af91bf01ea8403c5087c31e..a8b26741c0af868e6aab9277f01d311f54635c6b 100644 (file)
@@ -192,9 +192,10 @@ struct sctp_endpoint *sctp_endpoint_new(struct sock *sk, gfp_t gfp)
        struct sctp_endpoint *ep;
 
        /* Build a local endpoint. */
-       ep = t_new(struct sctp_endpoint, gfp);
+       ep = kzalloc(sizeof(*ep), gfp);
        if (!ep)
                goto fail;
+
        if (!sctp_endpoint_init(ep, sk, gfp))
                goto fail_init;
 
This page took 0.024554 seconds and 5 git commands to generate.