git: 094b2a2379c1 - main - ena: Remove write only variables

From: Warner Losh <imp_at_FreeBSD.org>
Date: Wed, 06 Apr 2022 03:42:54 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=094b2a2379c1c92f134fac22be78517c71470ca6

commit 094b2a2379c1c92f134fac22be78517c71470ca6
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-06 01:58:03 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
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;