浏览代码

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>
Shan Wei 15 年之前
父节点
当前提交
ec7b951950
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      net/sctp/outqueue.c

+ 1 - 1
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
 	/* If it is data, queue it up, otherwise, send it
 	 * immediately.
 	 * immediately.
 	 */
 	 */
-	if (SCTP_CID_DATA == chunk->chunk_hdr->type) {
+	if (sctp_chunk_is_data(chunk)) {
 		/* Is it OK to queue data chunks?  */
 		/* Is it OK to queue data chunks?  */
 		/* From 9. Termination of Association
 		/* From 9. Termination of Association
 		 *
 		 *