sctp: remove the typedef sctp_adaptation_ind_param_t
authorXin Long <lucien.xin@gmail.com>
Mon, 17 Jul 2017 03:29:55 +0000 (11:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jul 2017 03:52:14 +0000 (20:52 -0700)
This patch is to remove the typedef sctp_adaptation_ind_param_t, and
replace with struct sctp_adaptation_ind_param in the places where it's
using this typedef.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/sctp.h
net/sctp/sm_make_chunk.c

index 75524829aa8179aecac965326f3106640d0f835d..72b87874ea76c497b913d056e5cc7412ec0db072 100644 (file)
@@ -303,10 +303,10 @@ struct sctp_supported_addrs_param {
 };
 
 /* ADDIP Section 3.2.6 Adaptation Layer Indication */
-typedef struct sctp_adaptation_ind_param {
+struct sctp_adaptation_ind_param {
        struct sctp_paramhdr param_hdr;
        __be32 adaptation_ind;
-} sctp_adaptation_ind_param_t;
+};
 
 /* ADDIP Section 4.2.7 Supported Extensions Parameter */
 typedef struct sctp_supported_ext_param {
index fb06d4fd0515595a82f18855e3cff236f3207f18..d5f82c2f8c8480724666918fc2c04e3a91516093 100644 (file)
@@ -225,7 +225,7 @@ struct sctp_chunk *sctp_make_init(const struct sctp_association *asoc,
        struct sctp_sock *sp;
        struct sctp_supported_addrs_param sat;
        __be16 types[2];
-       sctp_adaptation_ind_param_t aiparam;
+       struct sctp_adaptation_ind_param aiparam;
        sctp_supported_ext_param_t ext_param;
        int num_ext = 0;
        __u8 extensions[3];
@@ -393,7 +393,7 @@ struct sctp_chunk *sctp_make_init_ack(const struct sctp_association *asoc,
        sctp_cookie_param_t *cookie;
        int cookie_len;
        size_t chunksize;
-       sctp_adaptation_ind_param_t aiparam;
+       struct sctp_adaptation_ind_param aiparam;
        sctp_supported_ext_param_t ext_param;
        int num_ext = 0;
        __u8 extensions[3];