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>
This commit is contained in:
Xin Long 2017-06-30 11:52:12 +08:00 committed by David S. Miller
parent 1383445195
commit ae146d9b76
7 changed files with 24 additions and 25 deletions

View file

@ -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)
{