Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171533082
D59590.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
916 B
Referenced Files
None
Subscribers
None
D59590.diff
View Options
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c
--- a/sys/netinet/sctp_usrreq.c
+++ b/sys/netinet/sctp_usrreq.c
@@ -4683,23 +4683,20 @@
break;
}
if (send_out) {
- int cnt;
uint16_t strm;
if (strrst->srs_number_streams) {
- for (i = 0, cnt = 0; i < strrst->srs_number_streams; i++) {
+ for (i = 0; i < strrst->srs_number_streams; i++) {
strm = strrst->srs_stream_list[i];
if (stcb->asoc.strmout[strm].state == SCTP_STREAM_OPEN) {
stcb->asoc.strmout[strm].state = SCTP_STREAM_RESET_PENDING;
- cnt++;
}
}
} else {
/* Its all */
- for (i = 0, cnt = 0; i < stcb->asoc.streamoutcnt; i++) {
+ for (i = 0; i < stcb->asoc.streamoutcnt; i++) {
if (stcb->asoc.strmout[i].state == SCTP_STREAM_OPEN) {
stcb->asoc.strmout[i].state = SCTP_STREAM_RESET_PENDING;
- cnt++;
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Sep 12, 3:26 PM (21 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38798453
Default Alt Text
D59590.diff (916 B)
Attached To
Mode
D59590: sctp: remove unused variable
Attached
Detach File
Event Timeline
Log In to Comment