From nobody Tue Apr 05 04:32:12 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 392601A90352; Tue, 5 Apr 2022 04:32:15 +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 4KXZVk06M9z4fth; Tue, 5 Apr 2022 04:32:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133134; 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=FMdNv1brRB73RdcFVN9bJkRJOYhZ/jwB4tC7XGSc3w4=; b=YJk6837mfHMtVXOWa0HK7tpbNA1ZjxGPX8tzzuNGwaIPuQnYICIvixIPFT5KPfToUFABDF 02vwJfXBZZdkhpjTeQMV0bvoU9WTinVFBlSbOHN2zAHvptQhE1I1XF4fHn8q4awrwVWkQH hdqWxc69GvUqIffWk1zKV1PJYs1Xh5GagWUHB8nKFAhTbg7wsx4syTJNLKJnCxwVFNnwdo sId3eivtgJT6NoCJPL7lkOPaFrgCr7RU/MPck2+LzGEzPAVbzShfUPydt2cRKooGfBh07n +35Yu1FIeLX4Uj4gxtaHSATqLJOsA5c2p70p94NK6puSGLLoUbBbzCMVHQeKlw== 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 0BDC41FADD; Tue, 5 Apr 2022 04:32:13 +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 2354WCw8008707; Tue, 5 Apr 2022 04:32:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2354WChb008706; Tue, 5 Apr 2022 04:32:12 GMT (envelope-from git) Date: Tue, 5 Apr 2022 04:32:12 GMT Message-Id: <202204050432.2354WChb008706@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 9a2e6ca6ef82 - main - e6000sw_set_atustat: eliminate write only ret variable 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9a2e6ca6ef82128ed2b7b9c7e8e3a9a6c459fb45 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133134; 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=FMdNv1brRB73RdcFVN9bJkRJOYhZ/jwB4tC7XGSc3w4=; b=UEghDRnZWeDcTFRzFPqoz3n/99oMoMJ+8e9tpMcbCZ9S4JnIjWb8dGxMsIEn8uEZ4usEJA CO/SQFfbqNJE9b5GETLn9R+szM7ea2/qhnEpFuWx2qou2IDCQF6jczh6oeQkYJkECoFgo2 /nion2/W2LOAYW9EN9raTP8RRnSUm/rU7WOye/83Iee50IIk0LLiJx26tYYC0CRQhlj66I yMwimYPmJQiEa3jLY5rACav+a9KnmS1pSVjPBanHaYM9605P+JO94n9ofQAqMyu5Debaxb NUmSSvlWQNVxBLmuFKHXSle+5WsBx48VrT+ImYjRmSV4gCyIw1Eeao2W7BHXSA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649133134; a=rsa-sha256; cv=none; b=ktKG4y2XxEXNO7aRC02nfKrsw0fQFG7TzdzhZx/Gqlf9JdgtRAHFXzRph7HR8nqx/W/dW6 p+vibueSLdfxGSxhC175n5+fshQZgCbUEEDDYpBq6me55PEGb3Q92jVw2r1zzVBjv3psMO HYmQH+QvVBSG0xM+6iC2zq4amLTHSeOaZl8/4YpUFhBiM2QZqcxNEDhiLsXDaTtkFPt2cn Tf0vei1dD1kx3Dw8EgQMfcHDHOEW/RI2uJhGWAkl+bB5vCjECe0r49K3bEGz65y4MacFov x7gUssRdkxTpuvuY84uGrZeNpltPqZSuv+rPyP004/LhDgo8ZtZQR3j0fmzsEw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=9a2e6ca6ef82128ed2b7b9c7e8e3a9a6c459fb45 commit 9a2e6ca6ef82128ed2b7b9c7e8e3a9a6c459fb45 Author: Warner Losh AuthorDate: 2022-04-05 00:03:18 +0000 Commit: Warner Losh CommitDate: 2022-04-05 04:29:26 +0000 e6000sw_set_atustat: eliminate write only ret variable Sponsored by: Netflix --- sys/dev/etherswitch/e6000sw/e6000sw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/etherswitch/e6000sw/e6000sw.c b/sys/dev/etherswitch/e6000sw/e6000sw.c index 68caf61f9358..a9949b896501 100644 --- a/sys/dev/etherswitch/e6000sw/e6000sw.c +++ b/sys/dev/etherswitch/e6000sw/e6000sw.c @@ -1529,9 +1529,8 @@ e6000sw_setup(device_t dev, e6000sw_softc_t *sc) static void e6000sw_set_atustat(device_t dev, e6000sw_softc_t *sc, int bin, int flag) { - uint16_t ret; - ret = e6000sw_readreg(sc, REG_GLOBAL2, ATU_STATS); + e6000sw_readreg(sc, REG_GLOBAL2, ATU_STATS); e6000sw_writereg(sc, REG_GLOBAL2, ATU_STATS, (bin << ATU_STATS_BIN ) | (flag << ATU_STATS_FLAG)); }