diff options
author | wangweidong <wangweidong1@huawei.com> | 2013-12-22 23:16:52 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-26 13:47:48 -0500 |
commit | f7010e61442c80333b38aa026a551043a341fb8d (patch) | |
tree | 678fc701ba550673b88fb67a72dac1907bd65c1d /net/sctp/output.c | |
parent | 26ac8e5fe1562831e68ccd9f7057aade37aab2a3 (diff) |
sctp: fix checkpatch errors with indent
fix checkpatch errors below:
ERROR: switch and case should be at the same inden
ERROR: code indent should use tabs where possible
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/output.c')
-rw-r--r-- | net/sctp/output.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/net/sctp/output.c b/net/sctp/output.c index 3be70a41a5de..b971cd226cf5 100644 --- a/net/sctp/output.c +++ b/net/sctp/output.c | |||
@@ -280,7 +280,7 @@ static sctp_xmit_t __sctp_packet_append_chunk(struct sctp_packet *packet, | |||
280 | 280 | ||
281 | /* We believe that this chunk is OK to add to the packet */ | 281 | /* We believe that this chunk is OK to add to the packet */ |
282 | switch (chunk->chunk_hdr->type) { | 282 | switch (chunk->chunk_hdr->type) { |
283 | case SCTP_CID_DATA: | 283 | case SCTP_CID_DATA: |
284 | /* Account for the data being in the packet */ | 284 | /* Account for the data being in the packet */ |
285 | sctp_packet_append_data(packet, chunk); | 285 | sctp_packet_append_data(packet, chunk); |
286 | /* Disallow SACK bundling after DATA. */ | 286 | /* Disallow SACK bundling after DATA. */ |
@@ -292,17 +292,17 @@ static sctp_xmit_t __sctp_packet_append_chunk(struct sctp_packet *packet, | |||
292 | /* timestamp the chunk for rtx purposes */ | 292 | /* timestamp the chunk for rtx purposes */ |
293 | chunk->sent_at = jiffies; | 293 | chunk->sent_at = jiffies; |
294 | break; | 294 | break; |
295 | case SCTP_CID_COOKIE_ECHO: | 295 | case SCTP_CID_COOKIE_ECHO: |
296 | packet->has_cookie_echo = 1; | 296 | packet->has_cookie_echo = 1; |
297 | break; | 297 | break; |
298 | 298 | ||
299 | case SCTP_CID_SACK: | 299 | case SCTP_CID_SACK: |
300 | packet->has_sack = 1; | 300 | packet->has_sack = 1; |
301 | if (chunk->asoc) | 301 | if (chunk->asoc) |
302 | chunk->asoc->stats.osacks++; | 302 | chunk->asoc->stats.osacks++; |
303 | break; | 303 | break; |
304 | 304 | ||
305 | case SCTP_CID_AUTH: | 305 | case SCTP_CID_AUTH: |
306 | packet->has_auth = 1; | 306 | packet->has_auth = 1; |
307 | packet->auth = chunk; | 307 | packet->auth = chunk; |
308 | break; | 308 | break; |
@@ -540,8 +540,7 @@ int sctp_packet_transmit(struct sctp_packet *packet) | |||
540 | } else { | 540 | } else { |
541 | /* no need to seed pseudo checksum for SCTP */ | 541 | /* no need to seed pseudo checksum for SCTP */ |
542 | nskb->ip_summed = CHECKSUM_PARTIAL; | 542 | nskb->ip_summed = CHECKSUM_PARTIAL; |
543 | nskb->csum_start = (skb_transport_header(nskb) - | 543 | nskb->csum_start = skb_transport_header(nskb) - nskb->head; |
544 | nskb->head); | ||
545 | nskb->csum_offset = offsetof(struct sctphdr, checksum); | 544 | nskb->csum_offset = offsetof(struct sctphdr, checksum); |
546 | } | 545 | } |
547 | } | 546 | } |