From nobody Sat Feb 26 18:47:11 2022 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 C503919EC391; Sat, 26 Feb 2022 18:47:11 +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 4K5bGl58mcz4WqK; Sat, 26 Feb 2022 18:47:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645901231; 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=lVzmkL0tzp4yptI0PUpL3TcdqRlVci0zV8o3ttGxvAY=; b=JaH6tndHyJAFIxpvJHyFmOK2aKeLaO2wwkOzPL3H15+rRhw/XSWZPxXazPh4/PJyWZGxrZ no32smGszttvxe36dzxG6KxptApU3CcyageuNo/e9F+5MVFTxV3txrmTrmZWiufTeKSVOd sJIBeBDIuR06xPgb89liFiqSQ1n23S80kAG3NN8gEGU7gjA6//D2+JmL/zRwO+/69wGyQj vpD//5Trm/EoWiMxChI0iQf6wttRsExUeGCJsZPAZMhi/xeuH4KUHNjtypy3TvAI8AMKUv ES2+hPVz4U9qSI3LgEyHlnbpK2ZJ4DEP7+FcMFCfRnCaCE6qvl/Ho/6FwoYyDA== 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 90AB918E38; Sat, 26 Feb 2022 18:47:11 +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 21QIlB7Q067176; Sat, 26 Feb 2022 18:47:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21QIlB2f067175; Sat, 26 Feb 2022 18:47:11 GMT (envelope-from git) Date: Sat, 26 Feb 2022 18:47:11 GMT Message-Id: <202202261847.21QIlB2f067175@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Scott Long Subject: git: 887ae1953f07 - main - Fix "set but not used" in the siis driver. 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: scottl X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 887ae1953f077bd7b8da0589ae595cbf61e297a7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645901231; 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=lVzmkL0tzp4yptI0PUpL3TcdqRlVci0zV8o3ttGxvAY=; b=KoG+ON2FnSpP+HhjXKhiccSCbsVWnpnBMJNmeU8YtwHhZwvRM1aYhqURVzhoyRYTZk1Y/8 7mY37OgfRm8c77abaeJqQMCp3+3yFPEFLzTXZJzFpbma0PmEcXsHOjkkM6/V0KNj2rJ8qK HaBf2sQime1CVLxsLsTHJGekBEhBakNRpYivXay2qf5jnf/+QVPlgekBtgiBZYqi1piuIL 6tESluKGNYvuP34KkS/y8bRcjaN+wLlxQvTnD78HZQSudOE4tG2PqZwmkMuciTAZFRbzzF NHhpoUtqiscdJ18jNKk20srSNmgeidQYnJtuAAWklR3K3J7KnvQPoqdPB+nLlA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645901231; a=rsa-sha256; cv=none; b=SYI65JoUPGip+r8GUZvVfZ4S6pWeymEWQx35oV5k/1wbsk+HjrGOdtc88WXatzD24XrPJs z74Dwj5En77XDIASQ6qMeQoqWpHjgqqV/8uVhIrNcfhzqSPuXCwGDr2qBBc7reTSLqAft/ +9+kXR/Tn3SjcJHBF+f+bF2vl0Ybwzcq/xab1gg4YMbD3mrlz7oEyOj46d4/qy/V4byGre NRFHjOOUMr3MNPrVlsU7GcXUo/jq5iqQ274M/6oO5rUfCPm74cDIci9SL86WaHO7c748Ou 8UQzNTXDAtG8KfD/iVioUxTYPNxub3OUXDRCFGUokaT68CFKD/aLOQflsfic8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by scottl: URL: https://cgit.FreeBSD.org/src/commit/?id=887ae1953f077bd7b8da0589ae595cbf61e297a7 commit 887ae1953f077bd7b8da0589ae595cbf61e297a7 Author: Scott Long AuthorDate: 2022-02-26 18:46:53 +0000 Commit: Scott Long CommitDate: 2022-02-26 18:46:53 +0000 Fix "set but not used" in the siis driver. --- sys/dev/siis/siis.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/siis/siis.c b/sys/dev/siis/siis.c index 316a9c6b61eb..19b73f71be8e 100644 --- a/sys/dev/siis/siis.c +++ b/sys/dev/siis/siis.c @@ -850,7 +850,7 @@ siis_ch_intr(void *data) { device_t dev = (device_t)data; struct siis_channel *ch = device_get_softc(dev); - uint32_t istatus, sstatus, ctx, estatus, ok, err = 0; + uint32_t istatus, sstatus, ctx, estatus, ok; enum siis_err_type et; int i, ccs, port, tslots; @@ -882,7 +882,6 @@ siis_ch_intr(void *data) ctx = ATA_INL(ch->r_mem, SIIS_P_CTX); ccs = (ctx & SIIS_P_CTX_SLOT) >> SIIS_P_CTX_SLOT_SHIFT; port = (ctx & SIIS_P_CTX_PMP) >> SIIS_P_CTX_PMP_SHIFT; - err = ch->rslots & sstatus; //device_printf(dev, "%s ERROR ss %08x is %08x rs %08x es %d act %d port %d serr %08x\n", // __func__, sstatus, istatus, ch->rslots, estatus, ccs, port, // ATA_INL(ch->r_mem, SIIS_P_SERR));