git: 77bc5890adf4 - main - clnt_vc_destroy: eliminiate write only variable stat

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

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

commit 77bc5890adf4aad832e1ed35f15dad8f5220a91b
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-05 02:42:37 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-04-05 04:31:02 +0000

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

diff --git a/sys/rpc/clnt_vc.c b/sys/rpc/clnt_vc.c
index 659bb4598dcb..dfada2bea388 100644
--- a/sys/rpc/clnt_vc.c
+++ b/sys/rpc/clnt_vc.c
@@ -863,7 +863,6 @@ clnt_vc_destroy(CLIENT *cl)
 	struct ct_data *ct = (struct ct_data *) cl->cl_private;
 	struct socket *so = NULL;
 	SVCXPRT *xprt;
-	enum clnt_stat stat;
 	uint32_t reterr;
 
 	clnt_vc_close(cl);
@@ -906,7 +905,7 @@ clnt_vc_destroy(CLIENT *cl)
 				 * daemon having crashed or been
 				 * restarted, so ignore return stat.
 				 */
-				stat = rpctls_cl_disconnect(ct->ct_sslsec,
+				rpctls_cl_disconnect(ct->ct_sslsec,
 				    ct->ct_sslusec, ct->ct_sslrefno,
 				    &reterr);
 			}