git: 6e671ec1e64c - main - svc_vc_rendezvous_stat: eliminiate write only variable stat

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 05 Apr 2022 04:33:08 UTC
The branch main has been updated by imp:

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

commit 6e671ec1e64ccd11c81eabe5abef5b20745914a2
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-05 02:43:03 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-04-05 04:31:04 +0000

    svc_vc_rendezvous_stat: eliminiate write only variable stat
    
    Sponsored by:           Netflix
---
 sys/rpc/svc_vc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/rpc/svc_vc.c b/sys/rpc/svc_vc.c
index b94137ef1087..f0e0ee5d4d62 100644
--- a/sys/rpc/svc_vc.c
+++ b/sys/rpc/svc_vc.c
@@ -449,7 +449,6 @@ svc_vc_rendezvous_stat(SVCXPRT *xprt)
 static void
 svc_vc_destroy_common(SVCXPRT *xprt)
 {
-	enum clnt_stat stat;
 	uint32_t reterr;
 
 	if (xprt->xp_socket) {
@@ -462,7 +461,7 @@ svc_vc_destroy_common(SVCXPRT *xprt)
 				 * daemon having crashed or been
 				 * restarted, so just ignore returned stat.
 				 */
-				stat = rpctls_srv_disconnect(xprt->xp_sslsec,
+				rpctls_srv_disconnect(xprt->xp_sslsec,
 				    xprt->xp_sslusec, xprt->xp_sslrefno,
 				    &reterr);
 			}