X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fsctp%2Finqueue.c;h=9bb4de3d2bff3b8cc178c791fc434ff82e0e63ee;hb=5e3b93f248c98873cc843e83092bb8da92ac85a2;hp=2e83405b8be7c6a0ad249350b1369577d36d7c3b;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/net/sctp/inqueue.c b/net/sctp/inqueue.c index 2e83405b8..9bb4de3d2 100644 --- a/net/sctp/inqueue.c +++ b/net/sctp/inqueue.c @@ -78,7 +78,7 @@ void sctp_inq_free(struct sctp_inq *queue) struct sctp_chunk *chunk; /* Empty the queue. */ - while ((chunk = (struct sctp_chunk *) skb_dequeue(&queue->in)) != NULL) + while ((chunk = (struct sctp_chunk *) skb_dequeue(&queue->in))) sctp_chunk_free(chunk); /* If there is a packet which is currently being worked on,