Commit 1181d629 authored by David S. Miller's avatar David S. Miller

sctp: Use skb_queue_is_first().

Instead of direct skb_queue_head pointer accesses.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e42a43a5
...@@ -459,7 +459,7 @@ static struct sctp_ulpevent *sctp_ulpq_retrieve_reassembled(struct sctp_ulpq *ul ...@@ -459,7 +459,7 @@ static struct sctp_ulpevent *sctp_ulpq_retrieve_reassembled(struct sctp_ulpq *ul
* element in the queue, then count it towards * element in the queue, then count it towards
* possible PD. * possible PD.
*/ */
if (pos == ulpq->reasm.next) { if (skb_queue_is_first(&ulpq->reasm, pos)) {
pd_first = pos; pd_first = pos;
pd_last = pos; pd_last = pos;
pd_len = pos->len; pd_len = pos->len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment