diff options
author | Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> | 2016-09-21 07:45:56 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-22 03:13:26 -0400 |
commit | 4a225ce3950879a5426c56f306f5d1c9d6330292 (patch) | |
tree | 7637df39624ae138b1cd43475cf669602d95b37d /net/sctp/chunk.c | |
parent | e2f036a97271cf5811ee754bf321a29a814577f9 (diff) |
sctp: make use of SCTP_TRUNC4 macro
And avoid the usage of '&~3'. This is the last place still not using
the macro.
Also break the line to make it easier to read.
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@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 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/sctp/chunk.c b/net/sctp/chunk.c index 76eae828ec89..8afe2e90d003 100644 --- a/net/sctp/chunk.c +++ b/net/sctp/chunk.c | |||
@@ -195,9 +195,10 @@ struct sctp_datamsg *sctp_datamsg_from_user(struct sctp_association *asoc, | |||
195 | /* This is the biggest possible DATA chunk that can fit into | 195 | /* This is the biggest possible DATA chunk that can fit into |
196 | * the packet | 196 | * the packet |
197 | */ | 197 | */ |
198 | max_data = (asoc->pathmtu - | 198 | max_data = asoc->pathmtu - |
199 | sctp_sk(asoc->base.sk)->pf->af->net_header_len - | 199 | sctp_sk(asoc->base.sk)->pf->af->net_header_len - |
200 | sizeof(struct sctphdr) - sizeof(struct sctp_data_chunk)) & ~3; | 200 | sizeof(struct sctphdr) - sizeof(struct sctp_data_chunk); |
201 | max_data = SCTP_TRUNC4(max_data); | ||
201 | 202 | ||
202 | max = asoc->frag_point; | 203 | max = asoc->frag_point; |
203 | /* If the the peer requested that we authenticate DATA chunks | 204 | /* If the the peer requested that we authenticate DATA chunks |