aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-12 21:58:59 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-12 21:58:59 +0000
commit90948e8c2e513303ffc087162a96a9ac4f4f169d (patch)
tree2b7c3b106aac758251329a90ff446049a622c61f /sys/netinet
parentbab34d6349f35d465305c9b23643404d69ee018b (diff)
downloadsrc-90948e8c2e513303ffc087162a96a9ac4f4f169d.tar.gz
src-90948e8c2e513303ffc087162a96a9ac4f4f169d.zip
sctp: Remove unused variable.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/sctp_bsd_addr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet/sctp_bsd_addr.c b/sys/netinet/sctp_bsd_addr.c
index a36c360279ff..c2f6b786948a 100644
--- a/sys/netinet/sctp_bsd_addr.c
+++ b/sys/netinet/sctp_bsd_addr.c
@@ -486,11 +486,10 @@ sctp_copy_out_packet_log(uint8_t *target, int length)
* We wind through the packet log starting at start copying up to
* length bytes out. We return the number of bytes copied.
*/
- int tocopy, this_copy;
+ int this_copy;
int *lenat;
int did_delay = 0;
- tocopy = length;
if (length < (int)(2 * sizeof(int))) {
/* not enough room */
return (0);