浏览代码

[SCTP]: ->source_h is not used anymore.

kill it

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Al Viro 18 年之前
父节点
当前提交
80f15d6241
共有 2 个文件被更改,包括 0 次插入2 次删除
  1. 0 1
      include/net/sctp/structs.h
  2. 0 1
      net/sctp/sm_make_chunk.c

+ 0 - 1
include/net/sctp/structs.h

@@ -714,7 +714,6 @@ struct sctp_chunk {
 
 	/* What is the origin IP address for this chunk?  */
 	union sctp_addr source;
-	union sctp_addr source_h;
 	/* Destination address for this chunk. */
 	union sctp_addr dest;
 

+ 0 - 1
net/sctp/sm_make_chunk.c

@@ -1032,7 +1032,6 @@ void sctp_init_addrs(struct sctp_chunk *chunk, union sctp_addr *src,
 		     union sctp_addr *dest)
 {
 	memcpy(&chunk->source, src, sizeof(union sctp_addr));
-	flip_to_h(&chunk->source_h, &chunk->source);
 	memcpy(&chunk->dest, dest, sizeof(union sctp_addr));
 }