diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-06-30 05:52:12 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-01 18:08:41 +0200 |
commit | ae146d9b76589d636d11c5e4382bbba2fe8bdb9b (patch) | |
tree | 1c816c31c77c71e85198e7d0cd703fc66bd28b20 /include | |
parent | Merge branch 'nfp-introduce-flower-offload-capabilities' (diff) | |
download | linux-ae146d9b76589d636d11c5e4382bbba2fe8bdb9b.tar.xz linux-ae146d9b76589d636d11c5e4382bbba2fe8bdb9b.zip |
sctp: remove the typedef sctp_sctphdr_t
This patch is to remove the typedef sctp_sctphdr_t, and replace
with struct sctphdr in the places where it's using this typedef.
It is also to fix some indents and 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')
-rw-r--r-- | include/linux/sctp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sctp.h b/include/linux/sctp.h index 7a4804c4a593..85540ec4b561 100644 --- a/include/linux/sctp.h +++ b/include/linux/sctp.h @@ -57,12 +57,12 @@ #include <uapi/linux/sctp.h> /* Section 3.1. SCTP Common Header Format */ -typedef struct sctphdr { +struct sctphdr { __be16 source; __be16 dest; __be32 vtag; __le32 checksum; -} sctp_sctphdr_t; +}; static inline struct sctphdr *sctp_hdr(const struct sk_buff *skb) { |