git: 98091db83d98 - stable/12 - ena: Remove unused variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 31 Jan 2023 13:18:05 UTC
The branch stable/12 has been updated by mw: URL: https://cgit.FreeBSD.org/src/commit/?id=98091db83d98f983a7696e3e1b16078f97ebadf6 commit 98091db83d98f983a7696e3e1b16078f97ebadf6 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-06 23:45:28 +0000 Commit: Marcin Wojtas <mw@FreeBSD.org> CommitDate: 2023-01-31 12:46:49 +0000 ena: Remove unused variable. (cherry picked from commit 4dab99b936920cf0c8f3fcf63754985906714a40) --- 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 228db0cb31ab..e1244ffc8a44 100644 --- a/sys/dev/ena/ena_netmap.c +++ b/sys/dev/ena/ena_netmap.c @@ -503,10 +503,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);