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>
This commit is contained in:

committed by
David S. Miller

parent
96f7ef4d58
commit
bb96dec745
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user