diff options
author | Xin Long | 2017-08-03 09:42:16 +0200 |
---|---|---|
committer | David S. Miller | 2017-08-03 18:45:47 +0200 |
commit | 65f77105438a7793836d7ba2d9a05fa585b8caf9 (patch) | |
tree | 4d63477603816b80c2d3291ac1d0b361dcdd599c /include/linux/sctp.h | |
parent | sctp: remove the typedef sctp_ecne_chunk_t (diff) | |
download | kernel-qcow2-linux-65f77105438a7793836d7ba2d9a05fa585b8caf9.tar.gz kernel-qcow2-linux-65f77105438a7793836d7ba2d9a05fa585b8caf9.tar.xz kernel-qcow2-linux-65f77105438a7793836d7ba2d9a05fa585b8caf9.zip |
sctp: remove the typedef sctp_cwrhdr_t
This patch is to remove the typedef sctp_cwrhdr_t, and
replace with struct sctp_cwrhdr in the places where it's
using this typedef.
It is also to use sizeof(variable) instead of sizeof(type).
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/sctp.h')
-rw-r--r-- | include/linux/sctp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/sctp.h b/include/linux/sctp.h index 026bbdfcaf44..3c8c418425e6 100644 --- a/include/linux/sctp.h +++ b/include/linux/sctp.h @@ -531,13 +531,13 @@ struct sctp_ecne_chunk { /* RFC 2960. Appendix A. Explicit Congestion Notification. * Congestion Window Reduced (CWR) (13) */ -typedef struct sctp_cwrhdr { +struct sctp_cwrhdr { __be32 lowest_tsn; -} sctp_cwrhdr_t; +}; typedef struct sctp_cwr_chunk { struct sctp_chunkhdr chunk_hdr; - sctp_cwrhdr_t cwr_hdr; + struct sctp_cwrhdr cwr_hdr; } sctp_cwr_chunk_t; /* PR-SCTP |