From: David S. Miller Date: Tue, 7 Aug 2018 06:25:13 +0000 (-0700) Subject: sctp: Use skb_queue_is_first(). X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1181d629cc135fe346216c66f0f1fb9bfca51b33;p=linux.git sctp: Use skb_queue_is_first(). Instead of direct skb_queue_head pointer accesses. Signed-off-by: David S. Miller --- diff --git a/net/sctp/ulpqueue.c b/net/sctp/ulpqueue.c index 0b427100b0d4a..331cc734e3dbd 100644 --- a/net/sctp/ulpqueue.c +++ b/net/sctp/ulpqueue.c @@ -459,7 +459,7 @@ static struct sctp_ulpevent *sctp_ulpq_retrieve_reassembled(struct sctp_ulpq *ul * element in the queue, then count it towards * possible PD. */ - if (pos == ulpq->reasm.next) { + if (skb_queue_is_first(&ulpq->reasm, pos)) { pd_first = pos; pd_last = pos; pd_len = pos->len;