From nobody Sun Oct 2 04:30:12 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Mg9xJ5dZRz4dtNC; Sun, 2 Oct 2022 04:30:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mg9xJ4s1mz47Fb; Sun, 2 Oct 2022 04:30:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664685012; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PO59QjnSTUMa9073mxvWQF53zbpiMS76gXVwRaUIaAU=; b=WwkO3gAx0pEWaoGwFWh61mjEi2y6phwK7KSj7u0jy0muCXto3FAD6ZDOVFHw9T4wpwrLoz VnTiRGx4CUk8VtZ73r5qjylAgAOVQpStk5Gxlus9jK2MORNT/Jk6HwKoWXDYxhoSPLP2j/ qMXn8EnpV6E3Iv3LN47TJqHhm643AtNlmWzTT/TH8fYWQNo9u2t27nwNzRXI1bzBQ2a8Xt A1A9+3P0POYi3RggpGiwKo8vP3519GC+GvjRxwTko0/YD60ugrUsRe/BtA6+OIsiPwDwNk qQMb6cvTDfvMBBEqzNcJOnKS0A7Zmols/wUmXE6A/IFZ2lHkkMXRneVumjemmQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Mg9xJ3xc0zlTh; Sun, 2 Oct 2022 04:30:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2924UCFR063008; Sun, 2 Oct 2022 04:30:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2924UCgL063005; Sun, 2 Oct 2022 04:30:12 GMT (envelope-from git) Date: Sun, 2 Oct 2022 04:30:12 GMT Message-Id: <202210020430.2924UCgL063005@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: b9654f85e6e1 - stable/13 - smb_smb_treedisconnect: eliminate write only variable mbp List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: b9654f85e6e11fe5232d8c2743ee955b4e3d9347 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664685012; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PO59QjnSTUMa9073mxvWQF53zbpiMS76gXVwRaUIaAU=; b=DEIb5OQ8lhdMwWxrsyxLoeATuh2UQAA1tDDkJQIVHwfnpY3NQW0B1Lnmv3/T2pfCOSCxjy JTLLfKrI7df437WCq6ev1EM3tb/L3Qz4t4gmS8+Gpegw2AY+B5RK7lq9AUgvV/9jSQGjTT ak0lTbeO6JD70QpiMBn+6bpYJjFGfbUIS5mJtrOA5y8d62QSBCJDgHjVkccSKxxxv2IpcD l35ViaIw0oCrg4rG4QcvF8m3UU3olBUEu6/h09glqe04iyn3EpX9f7vXLEr9M4gLgRDshZ hKQNIuZcNl3WNrIeCTxYUBnd5l07A6hpXrKkXJpa8iEfjtIUk7C+cPnXO89Etg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664685012; a=rsa-sha256; cv=none; b=JT/emwyBUsteD7iI6T1LHr7JueoT2OH2sVA5uZBMRISLKo0eRaiP6UY0mjLeFtcpP9IYud 3WOrKx5zlGnuniUzgtblAIy9ogyxg48dhhoCviAASTnCPidwXMbPgXVGhgXY33sDBgkgV6 mrKZtxtxRBg/xd3qcm7uJkXe31bNl4C3Gdyk6hNgLNiAVH7Ra/TK447uksTKvTZDKIPrPL ZsWA20ko0mzHL0VFWZ870TgXbimq+h9HKgpuUHhloWarYPSWBlhTwIGYKt7Z87a5Gs8ttC djHQnkbIpbz7U3wK/GmT2TkFhArAbK8rfDXxcTTfuZUPxakAwNRSwE26pCAFoA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=b9654f85e6e11fe5232d8c2743ee955b4e3d9347 commit b9654f85e6e11fe5232d8c2743ee955b4e3d9347 Author: Warner Losh AuthorDate: 2022-07-08 17:53:34 +0000 Commit: Warner Losh 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);