sctp: remove the typedef sctp_sack_variable_t

This patch is to remove the typedef sctp_sack_variable_t, and
replace with union sctp_sack_variable in the places where it's
using this typedef.

It is also to fix some indents in sctp_acked().

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Xin Long
2017-07-23 09:34:31 +08:00
committed by David S. Miller
parent 9b41515636
commit afd93b7be6
2 changed files with 8 additions and 8 deletions

View File

@@ -368,17 +368,17 @@ struct sctp_gap_ack_block {
__be16 end;
};
typedef union {
union sctp_sack_variable {
struct sctp_gap_ack_block gab;
__be32 dup;
} sctp_sack_variable_t;
};
typedef struct sctp_sackhdr {
__be32 cum_tsn_ack;
__be32 a_rwnd;
__be16 num_gap_ack_blocks;
__be16 num_dup_tsns;
sctp_sack_variable_t variable[0];
union sctp_sack_variable variable[0];
} sctp_sackhdr_t;
typedef struct sctp_sack_chunk {