git: 7660a72217b7 - stable/13 - epair: fix set but not used warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 14 May 2022 21:27:17 UTC
The branch stable/13 has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=7660a72217b7da20b69e1c8ecd9f66c0bb4959c4
commit 7660a72217b7da20b69e1c8ecd9f66c0bb4959c4
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2022-05-07 14:00:42 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2022-05-14 09:10:29 +0000
epair: fix set but not used warning
If 'options RSS' is set.
MFC after: 1 week
Sponsored by: Orange Business Services
(cherry picked from commit a6b0c8d04d2a72b3b3b7cd4ad5251aa35ff6353e)
---
sys/net/if_epair.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sys/net/if_epair.c b/sys/net/if_epair.c
index ef9be94285bc..2fe052f57486 100644
--- a/sys/net/if_epair.c
+++ b/sys/net/if_epair.c
@@ -801,14 +801,12 @@ epair_mod_init()
epair_tasks.tasks = 0;
#ifdef RSS
- struct pcpu *pcpu;
int cpu;
CPU_FOREACH(cpu) {
cpuset_t cpu_mask;
/* Pin to this CPU so we get appropriate NUMA allocations. */
- pcpu = pcpu_find(cpu);
thread_lock(curthread);
sched_bind(curthread, cpu);
thread_unlock(curthread);