From nobody Tue Jan 31 13:18:06 2023 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 4P5lwZ5Wpfz3cVJf; Tue, 31 Jan 2023 13:18:06 +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 4P5lwZ4xBrz3h31; Tue, 31 Jan 2023 13:18:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675171086; 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=+6pcQv2Q7CZklJudPYBaY90pbjpDA9AD4qIa6/qhyHM=; b=qrjxgigx3hxFuJfgrSDkcg6a3WTH8Nf6Orc55xEmPMwGWGi997528uZrxCX9xZw07CceuP z5ppNTAf8vvz2FXMLrvUFKERwIAqwbdFoQv24vg8lEVR8c0JPtzUcHMJSCptmoIH6IsOd7 9J+Ra5XBhVRT/tEToycy3JLBx9kpV78Opj6fvD3itbwEccaL1B+Ah2FDTCSOd+UnVt0cgU VshOFw//QBsygbq1frXRh7N8Vp/nJTBMfuO3X7A0GWEsoYdbOt5T+NUL0q6xn3+OoTDEd8 sKZsXzJTlgOHMoxXB459FUi2gTLmOeb3VJcDLhVkPK+cCEx7mUpPPwPOSrnfIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675171086; 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=+6pcQv2Q7CZklJudPYBaY90pbjpDA9AD4qIa6/qhyHM=; b=Uf7TSGPeXGgozyUwSkYDL+H4gQJvJ6q582apd3kNnLC+u53HPsIOwpaq1YfvsbXXkmS8qK T1Ryl1Q6MiHkXTpl59/lBEp73Br5pW9+JLSXebzoB20uAO1B4aMkBAfOx1kzqG2DXZ0sGI nNReyXBu6oHouBw+7CdG9SXpr8QK41O3lr/PSZ7PQilJjjQZKngQZBMSSeieFB+dqQYSFI yPLtg4QYj2GpvgEygRpVPSmaYt8jJ/MKQ0bfKd2gMVEwTaMquNrD6/vSwPByzku6rLzdqV hGhq6132675lprmyf91lQGI/jMzHaULB7hxgdgF65hxzAE4P4ihChtIM4O4Q1A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675171086; a=rsa-sha256; cv=none; b=xwAFxMv0t1c4i7k5nd0Q7tdq8DfP7HHEymSoXTPp3vBh24ct9YJES7Dz9GZ+n+WBiW4M2o uautdrGEmNgEWpl9Gs6Q1H55EY8aPKoT3GyuatYrh+zP0h+R1xRIGeQILko9kS7xtj99Mk qxtyHC0rrcHbPdOIw5pgc5pg1jMXPAWpwQJgH0dOsBWDG9zMc+ZTxUQyp0Fnt5BEJP80V9 rrn2R+SYZBdbL88Mdgra4Las+gx158MQhHaJjXwQRvXwrs4iuzt/i2ctlva/rYO9pXHbiM zUUY8VoDV94xaZ6yQKXEV1XV9/kqZ0tL6nWGkcXbEooom9eDBlH/Ay+SiRcbew== 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 4P5lwZ3gzXzqh9; Tue, 31 Jan 2023 13:18:06 +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 30VDI6CS040991; Tue, 31 Jan 2023 13:18:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30VDI6gZ040990; Tue, 31 Jan 2023 13:18:06 GMT (envelope-from git) Date: Tue, 31 Jan 2023 13:18:06 GMT Message-Id: <202301311318.30VDI6gZ040990@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Marcin Wojtas Subject: git: ffcc58a767bd - stable/12 - ena: Remove write only variables 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: mw X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: ffcc58a767bd6396191ea075a422316e97f8b6de Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by mw: URL: https://cgit.FreeBSD.org/src/commit/?id=ffcc58a767bd6396191ea075a422316e97f8b6de commit ffcc58a767bd6396191ea075a422316e97f8b6de Author: Warner Losh AuthorDate: 2022-04-06 01:58:03 +0000 Commit: Marcin Wojtas CommitDate: 2023-01-31 12:46:49 +0000 ena: Remove write only variables Sponsored by: Netflix (cherry picked from commit 094b2a2379c1c92f134fac22be78517c71470ca6) --- 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 db426ae89aeb..68b956d2654a 100644 --- a/sys/dev/ena/ena_sysctl.c +++ b/sys/dev/ena/ena_sysctl.c @@ -466,11 +466,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); @@ -815,7 +813,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; @@ -831,7 +828,6 @@ ena_sysctl_rss_indir_table(SYSCTL_HANDLER_ARGS) goto unlock; } - ena_dev = adapter->ena_dev; indir = adapter->rss_indir; msg = indir->sysctl_buf;