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>
This commit is contained in:
parent
26ac8e5fe1
commit
f7010e6144
@ -540,8 +540,7 @@ int sctp_packet_transmit(struct sctp_packet *packet)
|
|||||||
} else {
|
} else {
|
||||||
/* no need to seed pseudo checksum for SCTP */
|
/* no need to seed pseudo checksum for SCTP */
|
||||||
nskb->ip_summed = CHECKSUM_PARTIAL;
|
nskb->ip_summed = CHECKSUM_PARTIAL;
|
||||||
nskb->csum_start = (skb_transport_header(nskb) -
|
nskb->csum_start = skb_transport_header(nskb) - nskb->head;
|
||||||
nskb->head);
|
|
||||||
nskb->csum_offset = offsetof(struct sctphdr, checksum);
|
nskb->csum_offset = offsetof(struct sctphdr, checksum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2001,8 +2001,7 @@ static void sctp_process_ext_param(struct sctp_association *asoc,
|
|||||||
for (i = 0; i < num_ext; i++) {
|
for (i = 0; i < num_ext; i++) {
|
||||||
switch (param.ext->chunks[i]) {
|
switch (param.ext->chunks[i]) {
|
||||||
case SCTP_CID_FWD_TSN:
|
case SCTP_CID_FWD_TSN:
|
||||||
if (net->sctp.prsctp_enable &&
|
if (net->sctp.prsctp_enable && !asoc->peer.prsctp_capable)
|
||||||
!asoc->peer.prsctp_capable)
|
|
||||||
asoc->peer.prsctp_capable = 1;
|
asoc->peer.prsctp_capable = 1;
|
||||||
break;
|
break;
|
||||||
case SCTP_CID_AUTH:
|
case SCTP_CID_AUTH:
|
||||||
|
@ -3681,8 +3681,7 @@ sctp_disposition_t sctp_sf_do_asconf(struct net *net,
|
|||||||
asconf_ack->dest = chunk->source;
|
asconf_ack->dest = chunk->source;
|
||||||
sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(asconf_ack));
|
sctp_add_cmd_sf(commands, SCTP_CMD_REPLY, SCTP_CHUNK(asconf_ack));
|
||||||
if (asoc->new_transport) {
|
if (asoc->new_transport) {
|
||||||
sctp_sf_heartbeat(ep, asoc, type, asoc->new_transport,
|
sctp_sf_heartbeat(ep, asoc, type, asoc->new_transport, commands);
|
||||||
commands);
|
|
||||||
((struct sctp_association *)asoc)->new_transport = NULL;
|
((struct sctp_association *)asoc)->new_transport = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user