git: c91dd7a054b3 - main - tcp: remove unused variable from tcp_usr_disconnect()

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Thu, 19 Dec 2024 04:11:46 UTC
The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=c91dd7a054b3f2bc0325749950816bed3e6397e8

commit c91dd7a054b3f2bc0325749950816bed3e6397e8
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2024-12-19 04:11:34 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2024-12-19 04:11:34 +0000

    tcp: remove unused variable from tcp_usr_disconnect()
---
 sys/netinet/tcp_usrreq.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index b5725eb1ce86..35578b348c9f 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -685,7 +685,6 @@ tcp_usr_disconnect(struct socket *so)
 	struct inpcb *inp;
 	struct tcpcb *tp = NULL;
 	struct epoch_tracker et;
-	int error = 0;
 
 	NET_EPOCH_ENTER(et);
 	inp = sotoinpcb(so);
@@ -702,11 +701,11 @@ tcp_usr_disconnect(struct socket *so)
 		goto out;
 	tcp_disconnect(tp);
 out:
-	tcp_bblog_pru(tp, PRU_DISCONNECT, error);
+	tcp_bblog_pru(tp, PRU_DISCONNECT, 0);
 	TCP_PROBE2(debug__user, tp, PRU_DISCONNECT);
 	INP_WUNLOCK(inp);
 	NET_EPOCH_EXIT(et);
-	return (error);
+	return (0);
 }
 
 #ifdef INET