From nobody Thu Jul 21 17:36:32 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 4LpfrK10B4z4X7yJ; Thu, 21 Jul 2022 17:36:33 +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 4LpfrK0KJ0z3HvY; Thu, 21 Jul 2022 17:36:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658424993; 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=dvkK6RR2R75AbN+yHad1+/Q1gKGrRmkIzE7f7HduAnQ=; b=Mh3ydATJUtRecxzPjnz/SD77J908W/GiktIjov6wiuV46WrodwhaV7sQg2m5RzmkW6bT7+ n7O/+unX96t6EBXg+v/RqcID1LW5u2NYlErhAjYnX1BTGjO+sGA86DMSubak6mtnrn0VoK F6yqwzRmqy4ZG+FptKhwb27DDHmCBNsCWbSY3ub4ZC7dxdLFRtzZ/d8Dr4WbvrAFZe4XMG FA38nUW28mwJOXMDq1xd2nvejCsE8DFwC3SymKCKVB6PY7XjfS/NxSDMBCgeoypaEZAqgX 7dVIDEwGkGZnyK9NvwmikOkZa2h4Gts8FgwzHayTR4XgzVOrEK28/4mysvuXFg== 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 4LpfrJ6D3vzWLY; Thu, 21 Jul 2022 17:36:32 +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 26LHaWaL015431; Thu, 21 Jul 2022 17:36:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26LHaWLc015430; Thu, 21 Jul 2022 17:36:32 GMT (envelope-from git) Date: Thu, 21 Jul 2022 17:36:32 GMT Message-Id: <202207211736.26LHaWLc015430@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: 8d9e29284627 - main - Fix unused variable warning in ocs_cam.c 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8d9e29284627f5e860b7fc194e9fedd6b21f7783 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658424993; 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=dvkK6RR2R75AbN+yHad1+/Q1gKGrRmkIzE7f7HduAnQ=; b=Tfw+T7OgQzAi1H+OD0QZxxo6FrTZfvkBCMjEqI42E9sLQajvawBYM5IOdEtAGyzq1IB96j RTSBOJ9BS+MbAsVMXNh1PSt+YJcMLPgTRDaPSpKEdAhZgGFz2W3R72weDiCn9W+D9KFIYA 2Xxyl+Xfa+yMF/pHDRe09ihCBfwtWuna8kaKikix6U7qsXtkfgqTY7eZUjTCMB8Rpei+5j RCp4OHtERmCDdFcEn+dGl7biDHCYLsKGodZLcK90pVYFcJ7e9di/UHWf9LMNgIA6NY+7ft du91bfsTE12eK8VGFeSezjs4SQz3Txsv1UDZyx0w8E7qvBTU/EAXXMSBDo0opw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658424993; a=rsa-sha256; cv=none; b=qpB8jOhQJtX0SCG3w+aeJTn/U4InFzlD6SdItqHXfAvUmO5KmZudwCO4zDF4PSwn2mUInu JYWdmnlxkLdTVGldjiCT4O6/K/fSB+pRNgm6oZzNHC6plGJTF8b7M0lxVCUixMmSErjYFn fdep63pclJWl60ihv3Q+wyNJo1wxFUe/X/fuIOKQwKkNc/hyQWty2JYh5QWX0l9lnfGWnN Wh8y1hOhi+01kYNgjcKZpAWWw/omqmiWGrufKDQMENiqtM+gYwnBk4zlT4E7JeihHjIDEX +V+x846cxKYAUNHXlcdmxd9NkXtNTVx5IEDYoOtdmQkX1hHBWw2saEnyuYlYVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=8d9e29284627f5e860b7fc194e9fedd6b21f7783 commit 8d9e29284627f5e860b7fc194e9fedd6b21f7783 Author: Dimitry Andric AuthorDate: 2022-07-20 19:36:20 +0000 Commit: Dimitry Andric CommitDate: 2022-07-21 17:36:12 +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 --- 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 b734880cefb8..e2cbf3b1bf53 100644 --- a/sys/dev/ocs_fc/ocs_cam.c +++ b/sys/dev/ocs_fc/ocs_cam.c @@ -2553,27 +2553,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);