diff options
Diffstat (limited to 'net/sctp/outqueue.c')
-rw-r--r-- | net/sctp/outqueue.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c index b6b09f3f1a81..111516c3d34c 100644 --- a/net/sctp/outqueue.c +++ b/net/sctp/outqueue.c | |||
@@ -110,7 +110,7 @@ static inline int sctp_cacc_skip_3_1_d(struct sctp_transport *primary, | |||
110 | struct sctp_transport *transport, | 110 | struct sctp_transport *transport, |
111 | int count_of_newacks) | 111 | int count_of_newacks) |
112 | { | 112 | { |
113 | if (count_of_newacks >=2 && transport != primary) | 113 | if (count_of_newacks >= 2 && transport != primary) |
114 | return 1; | 114 | return 1; |
115 | return 0; | 115 | return 0; |
116 | } | 116 | } |
@@ -470,7 +470,7 @@ void sctp_retransmit(struct sctp_outq *q, struct sctp_transport *transport, | |||
470 | struct net *net = sock_net(q->asoc->base.sk); | 470 | struct net *net = sock_net(q->asoc->base.sk); |
471 | int error = 0; | 471 | int error = 0; |
472 | 472 | ||
473 | switch(reason) { | 473 | switch (reason) { |
474 | case SCTP_RTXR_T3_RTX: | 474 | case SCTP_RTXR_T3_RTX: |
475 | SCTP_INC_STATS(net, SCTP_MIB_T3_RETRANSMITS); | 475 | SCTP_INC_STATS(net, SCTP_MIB_T3_RETRANSMITS); |
476 | sctp_transport_lower_cwnd(transport, SCTP_LOWER_CWND_T3_RTX); | 476 | sctp_transport_lower_cwnd(transport, SCTP_LOWER_CWND_T3_RTX); |
@@ -1088,7 +1088,7 @@ sctp_flush_out: | |||
1088 | * | 1088 | * |
1089 | * --xguo | 1089 | * --xguo |
1090 | */ | 1090 | */ |
1091 | while ((ltransport = sctp_list_dequeue(&transport_list)) != NULL ) { | 1091 | while ((ltransport = sctp_list_dequeue(&transport_list)) != NULL) { |
1092 | struct sctp_transport *t = list_entry(ltransport, | 1092 | struct sctp_transport *t = list_entry(ltransport, |
1093 | struct sctp_transport, | 1093 | struct sctp_transport, |
1094 | send_ready); | 1094 | send_ready); |
@@ -1217,7 +1217,7 @@ int sctp_outq_sack(struct sctp_outq *q, struct sctp_chunk *chunk) | |||
1217 | * destinations for which cacc_saw_newack is set. | 1217 | * destinations for which cacc_saw_newack is set. |
1218 | */ | 1218 | */ |
1219 | if (transport->cacc.cacc_saw_newack) | 1219 | if (transport->cacc.cacc_saw_newack) |
1220 | count_of_newacks ++; | 1220 | count_of_newacks++; |
1221 | } | 1221 | } |
1222 | 1222 | ||
1223 | /* Move the Cumulative TSN Ack Point if appropriate. */ | 1223 | /* Move the Cumulative TSN Ack Point if appropriate. */ |