Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Oct 2022 04:30:12 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: b9654f85e6e1 - stable/13 - smb_smb_treedisconnect: eliminate write only variable mbp
Message-ID:  <202210020430.2924UCgL063005@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by imp:

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

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

    smb_smb_treedisconnect: eliminate write only variable mbp
    
    Sponsored by:           Netflix
    
    (cherry picked from commit d6f698549474982394b0d347ae72c72425cc1f32)
---
 sys/netsmb/smb_smb.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/netsmb/smb_smb.c b/sys/netsmb/smb_smb.c
index efd1fa18ac71..29bb888fbd24 100644
--- a/sys/netsmb/smb_smb.c
+++ b/sys/netsmb/smb_smb.c
@@ -602,7 +602,6 @@ int
 smb_smb_treedisconnect(struct smb_share *ssp, struct smb_cred *scred)
 {
 	struct smb_rq *rqp;
-	struct mbchain *mbp;
 	int error;
 
 	if (ssp->ss_tid == SMB_TID_UNKNOWN)
@@ -610,7 +609,6 @@ smb_smb_treedisconnect(struct smb_share *ssp, struct smb_cred *scred)
 	error = smb_rq_alloc(SSTOCP(ssp), SMB_COM_TREE_DISCONNECT, scred, &rqp);
 	if (error)
 		return error;
-	mbp = &rqp->sr_rq;
 	smb_rq_wstart(rqp);
 	smb_rq_wend(rqp);
 	smb_rq_bstart(rqp);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210020430.2924UCgL063005>