commit | 1181d629cc135fe346216c66f0f1fb9bfca51b33 | [log] [tgz] |
---|---|---|
author | David S. Miller <davem@davemloft.net> | Mon Aug 06 23:25:13 2018 -0700 |
committer | David S. Miller <davem@davemloft.net> | Mon Sep 10 10:06:53 2018 -0700 |
tree | 587e65d9277d49a5ac5a045ad1ef46fc6a82d68a | |
parent | e42a43a5cab2e019b5ab82bedb1340854709154d [diff] |
sctp: Use skb_queue_is_first(). Instead of direct skb_queue_head pointer accesses. Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/net/sctp/ulpqueue.c b/net/sctp/ulpqueue.c index 0b42710..331cc73 100644 --- a/net/sctp/ulpqueue.c +++ b/net/sctp/ulpqueue.c
@@ -459,7 +459,7 @@ * 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;