Skip to content

Commit 5884f35

Browse files
marceloleitnerdavem330
authored andcommitted
sctp: checkpatch fixups
A collection of fixups from previous patches, left for later to not introduce unnecessary changes while moving code around. Signed-off-by: Marcelo Ricardo Leitner <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e136e96 commit 5884f35

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

net/sctp/outqueue.c

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -812,8 +812,7 @@ static void sctp_outq_select_transport(struct sctp_flush_ctx *ctx,
812812

813813
if (!new_transport) {
814814
if (!sctp_chunk_is_data(chunk)) {
815-
/*
816-
* If we have a prior transport pointer, see if
815+
/* If we have a prior transport pointer, see if
817816
* the destination address of the chunk
818817
* matches the destination address of the
819818
* current transport. If not a match, then
@@ -912,8 +911,7 @@ static void sctp_outq_flush_ctrl(struct sctp_flush_ctx *ctx)
912911
sctp_outq_select_transport(ctx, chunk);
913912

914913
switch (chunk->chunk_hdr->type) {
915-
/*
916-
* 6.10 Bundling
914+
/* 6.10 Bundling
917915
* ...
918916
* An endpoint MUST NOT bundle INIT, INIT ACK or SHUTDOWN
919917
* COMPLETE with any other chunks. [Send them immediately.]
@@ -1061,8 +1059,7 @@ static void sctp_outq_flush_data(struct sctp_flush_ctx *ctx,
10611059
return;
10621060
}
10631061

1064-
/*
1065-
* RFC 2960 6.1 Transmission of DATA Chunks
1062+
/* RFC 2960 6.1 Transmission of DATA Chunks
10661063
*
10671064
* C) When the time comes for the sender to transmit,
10681065
* before sending new DATA chunks, the sender MUST
@@ -1101,8 +1098,7 @@ static void sctp_outq_flush_data(struct sctp_flush_ctx *ctx,
11011098

11021099
sctp_outq_select_transport(ctx, chunk);
11031100

1104-
pr_debug("%s: outq:%p, chunk:%p[%s], tx-tsn:0x%x skb->head:%p "
1105-
"skb->users:%d\n",
1101+
pr_debug("%s: outq:%p, chunk:%p[%s], tx-tsn:0x%x skb->head:%p skb->users:%d\n",
11061102
__func__, ctx->q, chunk, chunk && chunk->chunk_hdr ?
11071103
sctp_cname(SCTP_ST_CHUNK(chunk->chunk_hdr->type)) :
11081104
"illegal chunk", ntohl(chunk->subh.data_hdr->tsn),
@@ -1175,8 +1171,7 @@ static void sctp_outq_flush_transports(struct sctp_flush_ctx *ctx)
11751171
}
11761172
}
11771173

1178-
/*
1179-
* Try to flush an outqueue.
1174+
/* Try to flush an outqueue.
11801175
*
11811176
* Description: Send everything in q which we legally can, subject to
11821177
* congestion limitations.
@@ -1196,8 +1191,7 @@ static void sctp_outq_flush(struct sctp_outq *q, int rtx_timeout, gfp_t gfp)
11961191
.gfp = gfp,
11971192
};
11981193

1199-
/*
1200-
* 6.10 Bundling
1194+
/* 6.10 Bundling
12011195
* ...
12021196
* When bundling control chunks with DATA chunks, an
12031197
* endpoint MUST place control chunks first in the outbound
@@ -1768,7 +1762,7 @@ static int sctp_acked(struct sctp_sackhdr *sack, __u32 tsn)
17681762
if (TSN_lte(tsn, ctsn))
17691763
goto pass;
17701764

1771-
/* 3.3.4 Selective Acknowledgement (SACK) (3):
1765+
/* 3.3.4 Selective Acknowledgment (SACK) (3):
17721766
*
17731767
* Gap Ack Blocks:
17741768
* These fields contain the Gap Ack Blocks. They are repeated

0 commit comments

Comments
 (0)