From nobody Sun Jul 24 11:02:20 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 4LrKy525Nnz4XXMQ; Sun, 24 Jul 2022 11:02: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 4LrKy46rXsz3dDZ; Sun, 24 Jul 2022 11:02:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660541; 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=v8OcP73tWjb6lfbR1rz4jKVfme2qshWKUtapeXHoVMM=; b=MOR2hWOZplxGZNqlQQrX+PBnZn2hHjwp4+GigU0tfNhArIDVCuKM2cwQTwRkpn4yBl7EBu QsL67xZbPsLaSVIRDqdbyY70dqXQh5mQPlqBLgZY+cQ8Sz+W+a9PsSsf5lstlxjKN/Ot8N x6UmjLdw5rDEAJRfbLq5CMFikeXoo0cxOOYBMfkS36c4M0LSaFJVf+a/m44+9AtGbvTpHF wwp4OfmHgYXXuP52TD+73cgEd49td3ZqJGXrRD7nfuDo63lwAWpRrsRA1Z0pwjuaPxnoNK n++PBBZsvNseh0Qv2gH4+nBPCQ9/dtwqmfIgyAc9smzVAc68hKbY7BeLkb1r2w== 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 4LrKy45m73zGnq; Sun, 24 Jul 2022 11:02: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 26OB2KYp041410; Sun, 24 Jul 2022 11:02:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OB2KdB041409; Sun, 24 Jul 2022 11:02:20 GMT (envelope-from git) Date: Sun, 24 Jul 2022 11:02:20 GMT Message-Id: <202207241102.26OB2KdB041409@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 58b71ec7d630 - stable/12 - Fix unused variable warning in ocs_cam.c 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 58b71ec7d6307302dd22892bc7cf941fd7fc33fe Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660541; 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=v8OcP73tWjb6lfbR1rz4jKVfme2qshWKUtapeXHoVMM=; b=W39Okx/87ECd1+9pwI+on/EhPVlQU1qjlRNrI582e7ajDKxeEAybFDkga26IQnprQUu7F0 E4+zyAN1Qihq2EmsDkK+kjAsr8usBvUVHrHfiWWS5NuAuvhIkZs8XUwAVb1gGUaHjiT9n0 u/EfCzKrVdq9DLBSBcfRkE6o9lPuGQ48+SHb/uos2jAf+30S/eAtMNYNKhRlvLCeBPSYWc M+Su0f2OQEUP127vQliF/zeH3fiqxlW5ib4yy/Q0fC3+pxF/LejbKyqtQUS2KlItM3A26V zretqv5HgjeZ0QGmwV3fMIZvKFSvtmBiashHnxI1HmZxV3Jk9rIrHZPSKjQipA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658660541; a=rsa-sha256; cv=none; b=qph7Gvsq5ooBCYJMyIN8zZ8zsshyPq+rFZa5bWdM2YIIc1bvCDxj1CinMxFoW1XNVab1ls xcnMlq8f0jzPo67oaLC1rvXwrLfdltg2OS/1dfPy/dZONK93IoqvqH52ib6DZ6dYrZvjtO TUT6s9BgSDODtIeRMrtxxu3FgETuUBk1qCSlkpbqODmZr7pGF7Ve/FzNFhvf5evcxD7rmS /7ebOVLRljbQ4BpQYVdQC0QZkYpVssrnNBI9v9rtlKcNTQ2SXR1P8uWrWSKh7EHSHFBzK/ /xFDTKILlOePpGq+mSDvLrnV/wELLtleQLMxGw7mIGMsyVJZjjWLfGwN9jl0dw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=58b71ec7d6307302dd22892bc7cf941fd7fc33fe commit 58b71ec7d6307302dd22892bc7cf941fd7fc33fe Author: Dimitry Andric AuthorDate: 2022-07-20 19:36:20 +0000 Commit: Dimitry Andric CommitDate: 2022-07-24 11:01:19 +0000 Fix unused variable warning in ocs_cam.c With clang 15, the following -Werror warning is produced: sys/dev/ocs_fc/ocs_cam.c:2556:11: error: variable 'count' set but not used [-Werror,-Wunused-but-set-variable] uint32_t count; ^ The 'count' variable seems to be a left-over from some debugging code that no longer exists, and can be removed without any functional change. MFC after: 3 days (cherry picked from commit 8d9e29284627f5e860b7fc194e9fedd6b21f7783) --- sys/dev/ocs_fc/ocs_cam.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/dev/ocs_fc/ocs_cam.c b/sys/dev/ocs_fc/ocs_cam.c index 1b5c73f163ef..b83b9694bc15 100644 --- a/sys/dev/ocs_fc/ocs_cam.c +++ b/sys/dev/ocs_fc/ocs_cam.c @@ -2552,27 +2552,22 @@ static int32_t ocs_tgt_resource_abort(struct ocs_softc *ocs, ocs_tgt_resource_t *trsrc) { union ccb *ccb = NULL; - uint32_t count; - count = 0; do { ccb = (union ccb *)STAILQ_FIRST(&trsrc->atio); if (ccb) { STAILQ_REMOVE_HEAD(&trsrc->atio, sim_links.stqe); ccb->ccb_h.status = CAM_REQ_ABORTED; xpt_done(ccb); - count++; } } while (ccb); - count = 0; do { ccb = (union ccb *)STAILQ_FIRST(&trsrc->inot); if (ccb) { STAILQ_REMOVE_HEAD(&trsrc->inot, sim_links.stqe); ccb->ccb_h.status = CAM_REQ_ABORTED; xpt_done(ccb); - count++; } } while (ccb);