Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Apr 2022 23:46:21 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 4dab99b93692 - main - ena: Remove unused variable.
Message-ID:  <202204062346.236NkLKr009118@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=4dab99b936920cf0c8f3fcf63754985906714a40

commit 4dab99b936920cf0c8f3fcf63754985906714a40
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-06 23:45:28 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-06 23:45:28 +0000

    ena: Remove unused variable.
---
 sys/dev/ena/ena_netmap.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/dev/ena/ena_netmap.c b/sys/dev/ena/ena_netmap.c
index 1525b1efd954..976e54e4525f 100644
--- a/sys/dev/ena/ena_netmap.c
+++ b/sys/dev/ena/ena_netmap.c
@@ -508,10 +508,8 @@ ena_netmap_copy_data(struct netmap_adapter *na, struct netmap_slot *slots,
 {
 	struct netmap_slot *nm_slot;
 	void *slot_vaddr;
-	uint16_t packet_size;
 	uint16_t data_amount;
 
-	packet_size = 0;
 	do {
 		nm_slot = &slots[slot_index];
 		slot_vaddr = NMB(na, nm_slot);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204062346.236NkLKr009118>