Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee16371e authored by Daniel Borkmann's avatar Daniel Borkmann Committed by David S. Miller
Browse files

net: sctp: sctp_inq: remove dead code



sctp_inq is never kmalloced, since it's integrated into sctp_ep_common
and only initialized from eps and assocs. Therefore, remove the dead
code from there.

Signed-off-by: default avatarDaniel Borkmann <dborkman@redhat.com>
Acked-by: default avatarNeil Horman <nhorman@tuxdriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 542c2d83
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -991,8 +991,6 @@ struct sctp_inq {
	 * messages.
	 * messages.
	 */
	 */
	struct work_struct immediate;
	struct work_struct immediate;

	int malloced;	     /* Is this structure kfree()able?	*/
};
};


void sctp_inq_init(struct sctp_inq *);
void sctp_inq_init(struct sctp_inq *);
+0 −7
Original line number Original line Diff line number Diff line
@@ -58,8 +58,6 @@ void sctp_inq_init(struct sctp_inq *queue)


	/* Create a task for delivering data.  */
	/* Create a task for delivering data.  */
	INIT_WORK(&queue->immediate, NULL);
	INIT_WORK(&queue->immediate, NULL);

	queue->malloced = 0;
}
}


/* Release the memory associated with an SCTP inqueue.  */
/* Release the memory associated with an SCTP inqueue.  */
@@ -80,11 +78,6 @@ void sctp_inq_free(struct sctp_inq *queue)
		sctp_chunk_free(queue->in_progress);
		sctp_chunk_free(queue->in_progress);
		queue->in_progress = NULL;
		queue->in_progress = NULL;
	}
	}

	if (queue->malloced) {
		/* Dump the master memory segment.  */
		kfree(queue);
	}
}
}


/* Put a new packet in an SCTP inqueue.
/* Put a new packet in an SCTP inqueue.