git: 4dab99b93692 - main - ena: Remove unused variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 06 Apr 2022 23:46:21 UTC
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);