git: a73543fd38c1 - stable/13 - svc_vc_rendezvous_stat: eliminiate write only variable stat

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sun, 02 Oct 2022 04:30:16 UTC
The branch stable/13 has been updated by imp:

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

commit a73543fd38c194cd4dbcde8deb012a0fd4d02e94
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-08 17:53:35 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-10-02 04:25:57 +0000

    svc_vc_rendezvous_stat: eliminiate write only variable stat
    
    Sponsored by:           Netflix
    
    (cherry picked from commit 6e671ec1e64ccd11c81eabe5abef5b20745914a2)
---
 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 64ceb9008fd3..d6e77a5d3180 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);
 			}