summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorShan Wei <shanwei@cn.fujitsu.com>2010-05-01 04:41:09 +0200
committerVlad Yasevich <vladislav.yasevich@hp.com>2010-05-01 04:41:09 +0200
commitec7b9519509061bbc09a43284c3570aa492e07f0 (patch)
tree2808e03bcfc0045bc1b3f35b47966c9fec9413a8 /net
parentsctp: Do no select unconfirmed transports for retransmissions (diff)
downloadlinux-ec7b9519509061bbc09a43284c3570aa492e07f0.tar.xz
linux-ec7b9519509061bbc09a43284c3570aa492e07f0.zip
sctp: use sctp_chunk_is_data macro to decide a chunk is data chunk
sctp_chunk_is_data macro is defined to decide that whether a chunk is data chunk or not. Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com> Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Diffstat (limited to 'net')
-rw-r--r--net/sctp/outqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c
index e333d5833616..a4fe7dee76e8 100644
--- a/net/sctp/outqueue.c
+++ b/net/sctp/outqueue.c
@@ -308,7 +308,7 @@ int sctp_outq_tail(struct sctp_outq *q, struct sctp_chunk *chunk)
/* If it is data, queue it up, otherwise, send it
* immediately.
*/
- if (SCTP_CID_DATA == chunk->chunk_hdr->type) {
+ if (sctp_chunk_is_data(chunk)) {
/* Is it OK to queue data chunks? */
/* From 9. Termination of Association
*