sctp: remove the typedef sctp_cwrhdr_t
This patch is to remove the typedef sctp_cwrhdr_t, and replace with struct sctp_cwrhdr 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
b515fd2759
commit
65f7710543
@@ -663,11 +663,11 @@ struct sctp_chunk *sctp_make_cwr(const struct sctp_association *asoc,
|
||||
const struct sctp_chunk *chunk)
|
||||
{
|
||||
struct sctp_chunk *retval;
|
||||
sctp_cwrhdr_t cwr;
|
||||
struct sctp_cwrhdr cwr;
|
||||
|
||||
cwr.lowest_tsn = htonl(lowest_tsn);
|
||||
retval = sctp_make_control(asoc, SCTP_CID_ECN_CWR, 0,
|
||||
sizeof(sctp_cwrhdr_t), GFP_ATOMIC);
|
||||
sizeof(cwr), GFP_ATOMIC);
|
||||
|
||||
if (!retval)
|
||||
goto nodata;
|
||||
|
Reference in New Issue
Block a user