From nobody Wed Apr 06 03:42:54 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 834251A912DF; Wed, 6 Apr 2022 03:42:55 +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 4KY9MM0bW3z4sB5; Wed, 6 Apr 2022 03:42:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649216575; 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=e+ulLEjqiwR0pvBDIKtQRTTQvX+NkDDDwACOQww6FsY=; b=bAffATr8Fe/+Ski+Yj/rwMOFT+vtBZ7ZJ2CkpjJWCH6qVxFAhC1z4jK4/3Hpnt8NCiBbuv 04jWqrttNHETT4zVwtAz2NIcyCBQAZuswsokynZvkDR1DuSngbTJasRPyoUxSS5zJp6FIT L7yk3lxq//LuYSIUnr+/2IWpmB6+QuDBUF/JEM89EypD2HHkHWaubYNqL54wRshm6Gznn0 HfoSKuT82p59pYTuNYOlrvMGADIbN8M0Khu5TIUe9+0Uq6NYfm1kHLq8/FQeTk9vQNXQHE KHfaiLfTTd2bchdLZNiCLHyq8KD2DPqQdB/Jm7MJkQv4Eq1SLUnYTr2BgXhVow== 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 626E613A53; Wed, 6 Apr 2022 03:42:54 +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 2363gsae089113; Wed, 6 Apr 2022 03:42:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2363gs8d089112; Wed, 6 Apr 2022 03:42:54 GMT (envelope-from git) Date: Wed, 6 Apr 2022 03:42:54 GMT Message-Id: <202204060342.2363gs8d089112@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: 094b2a2379c1 - main - ena: Remove write only variables 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 094b2a2379c1c92f134fac22be78517c71470ca6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649216575; 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=e+ulLEjqiwR0pvBDIKtQRTTQvX+NkDDDwACOQww6FsY=; b=mFPttZpU3qnlRV6HOULbXJTgdLswlCXHqLNb38mOA0j8fUDDNRREp0BNfM5K1wRjKbjLj4 jrryp1p5tlVEHzTgWLIPgjJIGNytebiuaDm5ZiJVQoSfPOwpYQNUVvS8KVH1xXLtiK1awH Y76fB/OPHISXto1vvTbUczFxIYfUGygwOe4FtMi/dleK09UQ3yWNOGK+htirJwQPANukTX gzfzW6ygHHI64JwQKibU3VbV9s9pIOJgdyzeEFf8yBf+nWuaI+OU0koJ4M+sZzbrh3Yg8v PAcXgUt0IBrETA7QT7+7R+mp2YLIQkjsNKxb8mbR5eGvlW15gwVuEca351K/wA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649216575; a=rsa-sha256; cv=none; b=gNUzb2wveJjdY4t9uffiHMFSrgGTSyE6lLGDycR+voIsXxLMfKRFSCmqq/JUlTwMeZbZ1S JCJfm/szqrVOwopiGY6Z15ddsBYnLOXt0M7JnaqK4BTgnoHjMadm0WjiragbM6r8iICkuE VMCDUlY7cGMt6hBOAo/rPKvEi9VUuQdGvFed40UFpJKXQQ5iAERclou8osnO+b7SC+OKwd OyHelRJHRxmoqyJoxCsDxLsLbLr1/rwInML4nt7+15gOclhGigo8fH189YFucIdtmzrmAf wqaTR7ptLbvKgDsYCJYWOMeUIYRHTSUqXbSUEUM8YrY7lMaipowSR1mLDoP1Sw== 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=094b2a2379c1c92f134fac22be78517c71470ca6 commit 094b2a2379c1c92f134fac22be78517c71470ca6 Author: Warner Losh AuthorDate: 2022-04-06 01:58:03 +0000 Commit: Warner Losh CommitDate: 2022-04-06 03:42:05 +0000 ena: Remove write only variables Sponsored by: Netflix --- sys/dev/ena/ena_sysctl.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/dev/ena/ena_sysctl.c b/sys/dev/ena/ena_sysctl.c index f523bdbdbe81..f333a7560aae 100644 --- a/sys/dev/ena/ena_sysctl.c +++ b/sys/dev/ena/ena_sysctl.c @@ -486,11 +486,9 @@ ena_sysctl_add_rss(struct ena_adapter *adapter) void ena_sysctl_update_queue_node_nb(struct ena_adapter *adapter, int old, int new) { - device_t dev; struct sysctl_oid *oid; int min, max, i; - dev = adapter->pdev; min = MIN(old, new); max = MIN(MAX(old, new), adapter->max_num_io_queues); @@ -832,7 +830,6 @@ ena_sysctl_rss_indir_table(SYSCTL_HANDLER_ARGS) { int num_queues, error; struct ena_adapter *adapter = arg1; - struct ena_com_dev *ena_dev; struct ena_indir *indir; char *msg, *buf, *endp; uint32_t idx, value; @@ -848,7 +845,6 @@ ena_sysctl_rss_indir_table(SYSCTL_HANDLER_ARGS) goto unlock; } - ena_dev = adapter->ena_dev; indir = adapter->rss_indir; msg = indir->sysctl_buf;