提交 1181d629 编写于 作者: D David S. Miller

sctp: Use skb_queue_is_first().

Instead of direct skb_queue_head pointer accesses.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e42a43a5
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册