diff options
author | David S. Miller <davem@davemloft.net> | 2017-07-16 20:52:15 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-16 20:52:15 -0700 |
commit | a288855151546d1026c8f94728084c1173126a01 (patch) | |
tree | 3215c98a830a64e0bfcc6d37408f9336e7d4a1bb /net/sctp/protocol.c | |
parent | aed20a53a7d91e45c6a8cb8920c77aaaa88f76ee (diff) | |
parent | 1474774a7f0daf9878fd9537a24714f419e744ed (diff) | |
download | linux-a288855151546d1026c8f94728084c1173126a01.tar.bz2 |
Merge branch 'sctp-typedef-remove-part-2'
Xin Long says:
====================
sctp: remove typedefs from structures part 2
As we know, typedef is suggested not to use in kernel, even checkpatch.pl
also gives warnings about it. Now sctp is using it for many structures.
All this kind of typedef's using should be removed. This patchset is the
part 2 to remove it for another 11 basic structures.
Just as the part 1, No any code's logic would be changed in these patches,
only cleaning up.
Note that v1->v2, nothing changed, just because net-next were closed when
posting v1.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/protocol.c')
-rw-r--r-- | net/sctp/protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index 989a900383b5..852556d67ae3 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -292,7 +292,7 @@ static void sctp_v4_from_addr_param(union sctp_addr *addr, static int sctp_v4_to_addr_param(const union sctp_addr *addr, union sctp_addr_param *param) { - int length = sizeof(sctp_ipv4addr_param_t); + int length = sizeof(struct sctp_ipv4addr_param); param->v4.param_hdr.type = SCTP_PARAM_IPV4_ADDRESS; param->v4.param_hdr.length = htons(length); |