git: 4c909e1eab34 - stable/13 - clnt_vc_destroy: eliminiate write only variable stat

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

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

commit 4c909e1eab344358b1e7355e6fc362bb143c9f0b
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

    clnt_vc_destroy: eliminiate write only variable stat
    
    Sponsored by:           Netflix
    
    (cherry picked from commit 77bc5890adf4aad832e1ed35f15dad8f5220a91b)
---
 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 8ad6746eb485..8dab2db49dbc 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);
 			}