Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[firefly-linux-kernel-4.4.55.git] / net / sctp / bind_addr.c
index d886b3bf84f5a1823e208d3c784db05a6c88938a..41145fe31813bc70907a9bdf9bba92886246b5b6 100644 (file)
@@ -131,8 +131,6 @@ int sctp_bind_addr_dup(struct sctp_bind_addr *dest,
  */
 void sctp_bind_addr_init(struct sctp_bind_addr *bp, __u16 port)
 {
-       bp->malloced = 0;
-
        INIT_LIST_HEAD(&bp->address_list);
        bp->port = port;
 }
@@ -155,11 +153,6 @@ void sctp_bind_addr_free(struct sctp_bind_addr *bp)
 {
        /* Empty the bind address list. */
        sctp_bind_addr_clean(bp);
-
-       if (bp->malloced) {
-               kfree(bp);
-               SCTP_DBG_OBJCNT_DEC(bind_addr);
-       }
 }
 
 /* Add an address to the bind address list in the SCTP_bind_addr structure. */