git: 90948e8c2e51 - main - sctp: Remove unused variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Apr 2022 21:59:41 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=90948e8c2e513303ffc087162a96a9ac4f4f169d
commit 90948e8c2e513303ffc087162a96a9ac4f4f169d
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-12 21:58:59 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-12 21:58:59 +0000
sctp: Remove unused variable.
---
sys/netinet/sctp_bsd_addr.c | 3 +--
1 file changed, 1 insertion(+), 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);