diff options
author | Xin Long <lucien.xin@gmail.com> | 2017-08-03 15:42:22 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-03 09:45:47 -0700 |
commit | bb96dec74543bb3ceb4ac5caf39341dadb4cb559 (patch) | |
tree | 3b8c5621ac489ae3581151062c46f36960f195a7 /net/sctp/chunk.c | |
parent | 96f7ef4d58100d7168e0c4d01a59fbd8589f5756 (diff) | |
download | linux-stable-bb96dec74543bb3ceb4ac5caf39341dadb4cb559.tar.gz linux-stable-bb96dec74543bb3ceb4ac5caf39341dadb4cb559.tar.bz2 linux-stable-bb96dec74543bb3ceb4ac5caf39341dadb4cb559.zip |
sctp: remove the typedef sctp_auth_chunk_t
This patch is to remove the typedef sctp_auth_chunk_t, and
replace with struct sctp_auth_chunk 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 'net/sctp/chunk.c')
-rw-r--r-- | net/sctp/chunk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/chunk.c b/net/sctp/chunk.c index 681b181e7ae3..3afac275ee82 100644 --- a/net/sctp/chunk.c +++ b/net/sctp/chunk.c @@ -201,7 +201,7 @@ struct sctp_datamsg *sctp_datamsg_from_user(struct sctp_association *asoc, struct sctp_hmac *hmac_desc = sctp_auth_asoc_get_hmac(asoc); if (hmac_desc) - max_data -= SCTP_PAD4(sizeof(sctp_auth_chunk_t) + + max_data -= SCTP_PAD4(sizeof(struct sctp_auth_chunk) + hmac_desc->hmac_len); } |