From nobody Sun Jul 24 11:01:44 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 4LrKxP1KRhz4XXFY; Sun, 24 Jul 2022 11:01:45 +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 4LrKxP0ckvz3Zn9; Sun, 24 Jul 2022 11:01:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660505; 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=p5OkADIl+CT3DNlv28u9F3L3PuL8HxSsn3O5V6AdIOE=; b=L6uV1B4ruK+GMO/ExjMYYwZ65uMC3I19uvYrJSn4iWfTm77Q/i/iAdPh7izLvOH/ahskYM ApBwDNL+TD6yxUXR7uJDqOIAiKNaUT7ELPqKTVwu3ng8EmdZnnSvw+t6x7e+nwcUxyj6kl jtc3+ADAYA+F12Cn+wX1teRuNQUXHl4pBNSFhu7FxhKy1gnq/J0BCoycwlRnbe2WcyHPbo VzuJtEPFOEduvs1tCyD3VJrmMr8EVMZ4BShIhiUDmwPr54RBMbnn/7lBBUtv518Xhaho/s Quw/p53GEbxUF81NXDzNXK2p05c0Nqa0UGkW6rgonUP1XV2OB4Ez82OXVgg7ig== 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 4LrKxN6Qv5zGhV; Sun, 24 Jul 2022 11:01:44 +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 26OB1im5040698; Sun, 24 Jul 2022 11:01:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26OB1itp040697; Sun, 24 Jul 2022 11:01:44 GMT (envelope-from git) Date: Sun, 24 Jul 2022 11:01:44 GMT Message-Id: <202207241101.26OB1itp040697@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: 770520da5815 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 770520da5815aa056f72696cb48187f332d314d8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658660505; 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=p5OkADIl+CT3DNlv28u9F3L3PuL8HxSsn3O5V6AdIOE=; b=iG8RvvSOp290P36DlufF4wtOBaz+iv8Jc64oJLSBRZOGN35NT8zC8ug9g7FMCSwtC6B1WX Jim1DoO6BfLzuNTLGIOCLCeStyxpaGuHeMpwzOj1+65/KcRQ2QRLLzU5YFefU/AoWA8BR2 qXXgMdPr3AyKgII92JRJqzbX9z+oInZKy54UNuH81QDt8UZ5Pd+tWewdfAzo+0Hwc2aN9Y AJQDzmGT1vGR9/Hi4qu1E44Jg+y/9Jma/2xPw72B286kXHEjCq7icEL07R1xwEKSTuKCL+ LaDTcvRP00XeDvXe5B5/wY84z1cUet7jJc0q3WfftGsrACchCjXiQYmIVrSyGg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658660505; a=rsa-sha256; cv=none; b=Nr3WveHv8KHXw+UtyuefAezanZjL019wAyTFxEqOtdPvsyXn2Yj5GDbFdJqBUfMQYv4Drm M3ydLICx9E0xZfI5/agNia7gaBrr/ST8OOZNOItfg6OOYHRYpeyU5oWJNwYPjHxwxkM8wM 4T98pdXJCGPQNTB3fwBAGQ0DyBJ4PC6JGXxwdFhiWbz5s3WHpwGJ4BTbH2Fn29cnVh9Eqr BWIftVThZrsFsMM6ztEsOZti9eJOuwA7ZWTE6uydMyzFMeQZsfR49nNygahgVLCW2B1WJ/ jIuaH8nh6Jn352uuqWSt0D5uICaCG+VMK3x76ZJs6idf2FtiRWjKZRj09I/goA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=770520da5815aa056f72696cb48187f332d314d8 commit 770520da5815aa056f72696cb48187f332d314d8 Author: Dimitry Andric AuthorDate: 2022-07-20 19:36:20 +0000 Commit: Dimitry Andric CommitDate: 2022-07-24 11:00:07 +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 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);