sctp: Remove superfluous test in sctp_ulpq_reasm_drain().
Inside the loop, we always start with event non-NULL. Signed-off-by: David S. Miller <davem@davemloft.net> Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9994677c96
commit
0eff105243
@ -745,7 +745,7 @@ static void sctp_ulpq_reasm_drain(struct sctp_ulpq *ulpq)
|
|||||||
|
|
||||||
while ((event = sctp_ulpq_retrieve_reassembled(ulpq)) != NULL) {
|
while ((event = sctp_ulpq_retrieve_reassembled(ulpq)) != NULL) {
|
||||||
/* Do ordering if needed. */
|
/* Do ordering if needed. */
|
||||||
if ((event) && (event->msg_flags & MSG_EOR)) {
|
if (event->msg_flags & MSG_EOR) {
|
||||||
skb_queue_head_init(&temp);
|
skb_queue_head_init(&temp);
|
||||||
__skb_queue_tail(&temp, sctp_event2skb(event));
|
__skb_queue_tail(&temp, sctp_event2skb(event));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user