git: 172c5eb272df - main - netmap: vtnet: remove unused variable

Vincenzo Maffione vmaffione at FreeBSD.org
Fri Apr 9 19:33:48 UTC 2021


The branch main has been updated by vmaffione:

URL: https://cgit.FreeBSD.org/src/commit/?id=172c5eb272dfaa5c7e6450141f09204e1b2e3320

commit 172c5eb272dfaa5c7e6450141f09204e1b2e3320
Author:     Vincenzo Maffione <vmaffione at FreeBSD.org>
AuthorDate: 2021-04-09 19:26:23 +0000
Commit:     Vincenzo Maffione <vmaffione at FreeBSD.org>
CommitDate: 2021-04-09 19:33:41 +0000

    netmap: vtnet: remove unused variable
    
    Reported by:    bdragon
---
 sys/dev/netmap/if_vtnet_netmap.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/dev/netmap/if_vtnet_netmap.h b/sys/dev/netmap/if_vtnet_netmap.h
index a423e71331be..8bff697b3fdb 100644
--- a/sys/dev/netmap/if_vtnet_netmap.h
+++ b/sys/dev/netmap/if_vtnet_netmap.h
@@ -87,10 +87,9 @@ vtnet_netmap_txsync(struct netmap_kring *kring, int flags)
 			uint64_t offset = nm_get_offset(kring, slot);
 			u_int len = slot->len;
 			uint64_t paddr;
-			void *addr = PNMB(na, slot, &paddr);
 			int err;
 
-			(void)addr;
+			(void)PNMB(na, slot, &paddr);
 			NM_CHECK_ADDR_LEN_OFF(na, len, offset);
 
 			slot->flags &= ~(NS_REPORT | NS_BUF_CHANGED);


More information about the dev-commits-src-all mailing list