From nobody Sat Feb 26 17:36:11 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 07B3619DD977; Sat, 26 Feb 2022 17:36:12 +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 4K5Yhq62YHz3qg2; Sat, 26 Feb 2022 17:36:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645896971; 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=1DzDWSo4yHrFNgOpHF1NwtPbWSbO9qPuPLAlXW5nzr0=; b=VtRLnryjeRVTG+n38UdotRChCGbv4yALeyRG9EG6xA1VyIsNRpsyw3B8G53UwTFyTy1axY B/Ecu1x9fwrELtlIlYGYgEKBW7sWo7dpyAq8k1eQ9B6kiUeWA5KIK2acJ5DId5jL5y1hz4 fXRrHHgNyWvE9iUU/tavrEAfgnItwXaEfvK+ral/IamjPK4+lzCTEK7++xV3otY328+VDe rB/hdiMar8fx/T8zwjJ0fQ7V6VZ9eInbI2lnAyDfyJ8SKuLgExL+mbmhIq9xxtMqadQH4A j4jyZtvjco3qnUeclnbKFK+YqI9RmH5QNEAc0BoMVfFNvDSV0OpGtPggDFa3zg== 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 A8BF417DA7; Sat, 26 Feb 2022 17:36: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 21QHaBFG073005; Sat, 26 Feb 2022 17:36:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21QHaBaF073004; Sat, 26 Feb 2022 17:36:11 GMT (envelope-from git) Date: Sat, 26 Feb 2022 17:36:11 GMT Message-Id: <202202261736.21QHaBaF073004@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: dec703c7e03a - main - Fix "set but not used" in the ips driver. Dead code. 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: scottl X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dec703c7e03a8a2cd90e5646156b372b2e5b539b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645896971; 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=1DzDWSo4yHrFNgOpHF1NwtPbWSbO9qPuPLAlXW5nzr0=; b=N36TsIixJVWai1pe5q3UCqnrwQxcgOkK29bZNFut/DNrtnj5HnnX2jFNNfdvY+qJULiKfb nqIS3lf8MJbBBhA70hBZX/y++lgfCY3l1TW76eNcA2bN+QzW3aOaKJaaicPmC+QJhPA3nZ su4E3pBoBO8TrsATrLtsH1JqtI7oV1cVbmRwgHemwbE+FUDs09LRACzf3av0CvppWz+JPF H7RIW4qh76EpQ4k0IZ/4EZTQjj/gtrSI0SuFsfuZ42wM1HH8D+hdO/wtAaTUDVSn4DSput ZNzpBOik/ea0ltjj8M0IOp1EBrhYbxrZsgoMoPm1F7mwrNhzbguw+cO7ckfuFA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645896971; a=rsa-sha256; cv=none; b=Bfkj0ab4nYwThlf/nG+vx5vkeQV4qmqnYRP4kcmtMJ395q0Px7eyY5PFC82ocjb8LtAig4 0ZbrGcF+XZbXQVTi3jOOmd05yoxFgY7HrMGXmI9CB943caSnIjy1yGZKSqz147DyTUmKtX brQjgv9i5BBi/VM03nx+x+jXi1OG5/4YvoWEgB7LQa9NQHHDcD3XhAQ0YhNt5J3gleah/q LxtPTJ2rMXTDzEPeF5gfaeHiT34wwCKX6Y2h/I/SR022qOrTkGLRmLGKq0aXxFPQeB8FqW DynlBb3doxsPkHXxazANN0N9gGk5wyeq4D+mJmeq9PmqMN6OMtNrn9+CLhboQA== 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=dec703c7e03a8a2cd90e5646156b372b2e5b539b commit dec703c7e03a8a2cd90e5646156b372b2e5b539b Author: Scott Long AuthorDate: 2022-02-26 17:35:51 +0000 Commit: Scott Long CommitDate: 2022-02-26 17:35:51 +0000 Fix "set but not used" in the ips driver. Dead code. --- sys/dev/ips/ips.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/ips/ips.c b/sys/dev/ips/ips.c index 63ca8a053555..a9bc8d7410e4 100644 --- a/sys/dev/ips/ips.c +++ b/sys/dev/ips/ips.c @@ -642,15 +642,13 @@ exit: int ips_copperhead_reinit(ips_softc_t *sc, int force) { int i, j; - u_int32_t postcode = 0, configstatus = 0; + u_int32_t configstatus = 0; ips_write_1(sc, COPPER_REG_SCPR, 0x80); ips_write_1(sc, COPPER_REG_SCPR, 0); device_printf(sc->dev, "reinitializing adapter, this could take several minutes.\n"); for(j = 0; j < 2; j++){ - postcode <<= 8; for(i = 0; i < 45; i++){ if(ips_read_1(sc, COPPER_REG_HISR) & COPPER_GHI_BIT){ - postcode |= ips_read_1(sc, COPPER_REG_ISPR); ips_write_1(sc, COPPER_REG_HISR, COPPER_GHI_BIT); break;