From nobody Mon Nov 29 16:49:20 2021 X-Original-To: dev-commits-src-main@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 BD76018B884C; Mon, 29 Nov 2021 16:49:21 +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 4J2rsr6nZsz3nZ5; Mon, 29 Nov 2021 16:49:20 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 B541B25DDA; Mon, 29 Nov 2021 16:49:20 +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 1ATGnKw5047300; Mon, 29 Nov 2021 16:49:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ATGnK79047299; Mon, 29 Nov 2021 16:49:20 GMT (envelope-from git) Date: Mon, 29 Nov 2021 16:49:20 GMT Message-Id: <202111291649.1ATGnK79047299@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Edward Tomasz Napierala Subject: git: fbf524675763 - main - cfiscsi(4): Fix "set but not used" warning List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: trasz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fbf5246757630650c23ed711c527a67dd52eb745 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638204561; 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=ZUCY2IO0kKQgYNEKXhrwkpt07cIfqZHo7JLa1WFcf8U=; b=HesSSWf6pB0O4yUtA5jA4XILkXuIeS8pyvmJmGJWWiauQELnD7iv12BEtUvsGEPZOeuJVa P6Jjl30EYv/KbXZg+LH2XEremfX/Dr24OxAB6O+bGJ9pkAhtpLLaq6yhHWyUQa/BIbj3kf 9zkxsJI7TIs5H1L+NjHBZ7+BBQrtkwjk1SgXNzA18maQR/9Aml+luaffgQYsJAe6n5EHg3 VVt0unOlnZQct0kfsYevviztD9S/jvv0kvpxrfm3DDn1l/FyzBKWLKc4EzAZP+7wHOKKcf DgF5ey25Ke0etiFkuuddxH3YrUCRQCqig03bsalIz8QK0dANJw3W5CHI0fzcog== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638204561; a=rsa-sha256; cv=none; b=bb230PBdf2+cx6APeaOpWx+SLDEltHBYSoonw+5HwfHCXZ3QUCka/Uf4kQNYYXUngJMFX2 L12tV08yz0tac/o3m234OH9G76eWIPpP3HqxG7abewTTWc6R3L2BxoMQe2UkPbhIyQ60gY gEAkJOZkNhD+zvPUK+iyNRdQFIrKE++mlIh8DWiCuJJS0BMGVi3zw4O0dWYTTiBBMnRiKI cLzNCC+5Weg9Rlduge7zmhsNsEKEvn/axF0DZVvJ3UlEQa8KWnOas/depq4+gEfyJ7w0OY 90V4KSzh1mSAFsfhVlDF/dZAT/nkNMlDL7xq9u7MKdRmQtF4YHWJ3kZyr5BO2g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by trasz: URL: https://cgit.FreeBSD.org/src/commit/?id=fbf5246757630650c23ed711c527a67dd52eb745 commit fbf5246757630650c23ed711c527a67dd52eb745 Author: Edward Tomasz Napierala AuthorDate: 2021-11-29 16:44:12 +0000 Commit: Edward Tomasz Napierala CommitDate: 2021-11-29 16:45:15 +0000 cfiscsi(4): Fix "set but not used" warning No functional changes. Sponsored By: EPSRC --- sys/cam/ctl/ctl_frontend_iscsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/cam/ctl/ctl_frontend_iscsi.c b/sys/cam/ctl/ctl_frontend_iscsi.c index b8ab25e89eb9..6b002566b465 100644 --- a/sys/cam/ctl/ctl_frontend_iscsi.c +++ b/sys/cam/ctl/ctl_frontend_iscsi.c @@ -2857,12 +2857,11 @@ cfiscsi_scsi_command_done(union ctl_io *io) struct iscsi_bhs_scsi_response *bhssr; #ifdef DIAGNOSTIC struct cfiscsi_data_wait *cdw; -#endif struct cfiscsi_session *cs; +#endif uint16_t sense_length; request = PRIV_REQUEST(io); - cs = PDU_SESSION(request); bhssc = (struct iscsi_bhs_scsi_command *)request->ip_bhs; KASSERT((bhssc->bhssc_opcode & ~ISCSI_BHS_OPCODE_IMMEDIATE) == ISCSI_BHS_OPCODE_SCSI_COMMAND, @@ -2872,6 +2871,7 @@ cfiscsi_scsi_command_done(union ctl_io *io) // bhssc->bhssc_initiator_task_tag); #ifdef DIAGNOSTIC + cs = PDU_SESSION(request); CFISCSI_SESSION_LOCK(cs); TAILQ_FOREACH(cdw, &cs->cs_waiting_for_data_out, cdw_next) KASSERT(bhssc->bhssc_initiator_task_tag !=