mirror of https://gitee.com/openkylin/linux.git
[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>
This commit is contained in:
parent
a926626893
commit
80f15d6241
|
@ -714,7 +714,6 @@ struct sctp_chunk {
|
||||||
|
|
||||||
/* What is the origin IP address for this chunk? */
|
/* What is the origin IP address for this chunk? */
|
||||||
union sctp_addr source;
|
union sctp_addr source;
|
||||||
union sctp_addr source_h;
|
|
||||||
/* Destination address for this chunk. */
|
/* Destination address for this chunk. */
|
||||||
union sctp_addr dest;
|
union sctp_addr dest;
|
||||||
|
|
||||||
|
|
|
@ -1032,7 +1032,6 @@ void sctp_init_addrs(struct sctp_chunk *chunk, union sctp_addr *src,
|
||||||
union sctp_addr *dest)
|
union sctp_addr *dest)
|
||||||
{
|
{
|
||||||
memcpy(&chunk->source, src, sizeof(union sctp_addr));
|
memcpy(&chunk->source, src, sizeof(union sctp_addr));
|
||||||
flip_to_h(&chunk->source_h, &chunk->source);
|
|
||||||
memcpy(&chunk->dest, dest, sizeof(union sctp_addr));
|
memcpy(&chunk->dest, dest, sizeof(union sctp_addr));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue