From nobody Tue Apr 05 04:33:04 2022 X-Original-To: dev-commits-src-all@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 F36B11A930B5; Tue, 5 Apr 2022 04:33:04 +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 4KXZWh5X2Qz4gXB; Tue, 5 Apr 2022 04:33:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133184; 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=VQkWFP85QuVrA6lNfxA9sgA0LXtgc1LqYM6OXiioKHY=; b=UcYdcRp3aYbAZSMAFOHULUp1/q34Hh/a6RJX6MgQqwnYC5oADd8Ces1JYoMj38vKrJ/GMa 0FDQ96ZkyaSGyDXkAnPZ/SHvd/3yT0s0a8BkEkNImoZUXrrgVvVQuub6mQzqxtMYw4WSck Snl58k5UDsnO76xJrFol+SYGwC/ynuCFULSUbBf9keYtXSgWI7yZCzxxj4Z1cNdSko846E Mjm53l6/aiGExC8Lm2EY4VTQBapZh7taRB0aY/qoI8+gQrc+CHKa/HPYN9YeDTf8OIG/9a SkxbYNN2V8/TXTbeLun5LOBOpZ/PXS83cpFMDYtGeohOuCOSMwGFKqQEFUqP4A== 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 8E8391FB4D; Tue, 5 Apr 2022 04:33:04 +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 2354X47n009871; Tue, 5 Apr 2022 04:33:04 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2354X4QA009870; Tue, 5 Apr 2022 04:33:04 GMT (envelope-from git) Date: Tue, 5 Apr 2022 04:33:04 GMT Message-Id: <202204050433.2354X4QA009870@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: d6f698549474 - main - smb_smb_treedisconnect: eliminate write only variable mbp List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: d6f698549474982394b0d347ae72c72425cc1f32 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133184; 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=VQkWFP85QuVrA6lNfxA9sgA0LXtgc1LqYM6OXiioKHY=; b=wOsnWi57a0Tw8K95AgBrUcZ+KRtjH1mhNij3isPTe+M91hDzYggc52jAcVWpTzndeGShyp F2xqTLUtwv5bJ349yRcF+skMGKjVwvLBgW7MoLZCelexazQr9luq3Jydpfrh8Nuxs13GRw UsEupm0DGVJiqW+od+URv2sHILsmsPJppgmzPLQQgDG+YSkP5B20z1RbVdYnWQZ1wNLU4B FcsGXu0dMlZIzOWjHxJiAZIG8jwcdtWTrMtg4qJbWO7Kcd09YLAnB6YkruGScOJwptpDYq yTAaHCpBrHFrGHmirDo+8aoT3Q76/6409KRjehOI0VOwVvIPbm4zBumpahi4+A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649133184; a=rsa-sha256; cv=none; b=J38kqPQ4E0judWHJ4QR/e6U5p9McYrJYi3rS5zGdUDY0eZf/u335qEITvvpX/fdEO8lJnH JQpfiZxkwFy86LZ/Fh2tkLGt3+HekaAnuyKu7+70hhIBPAoA8vzG/Vfag3VUBqpOBD4rG5 w4S2vebh35+Z+VgVI74L953y96Z8nyvYz7zyv16E8m1sbcM3iNFmUFRV7bNWC6ACV7Yr+A G0ubLuBy7C/QNj3ZXuEs02quGej/H6pk2rgroQZi392DKHe2vDJ6tPc8g/ghMmfilNK099 oXj5MGQR+wVtkpPAIroZ8MXBlq7ochlYjwpnICv9wBhNQVxvVtcEGcxzqhdEKg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=d6f698549474982394b0d347ae72c72425cc1f32 commit d6f698549474982394b0d347ae72c72425cc1f32 Author: Warner Losh AuthorDate: 2022-04-05 02:40:38 +0000 Commit: Warner Losh CommitDate: 2022-04-05 04:30:57 +0000 smb_smb_treedisconnect: eliminate write only variable mbp Sponsored by: Netflix --- 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);