mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't refer to the cpu variable in a KASSERT before initializing it.
This commit is contained in:
parent
46f8169aea
commit
fbc27301ba
1 changed files with 1 additions and 1 deletions
|
|
@ -315,11 +315,11 @@ armv7_intr(struct trapframe *tf)
|
|||
int error;
|
||||
int reg, cpu;
|
||||
|
||||
cpu = curcpu;
|
||||
KASSERT(cpu >= 0 && cpu < pmc_cpu_max(),
|
||||
("[armv7,%d] CPU %d out of range", __LINE__, cpu));
|
||||
|
||||
retval = 0;
|
||||
cpu = curcpu;
|
||||
pc = armv7_pcpu[cpu];
|
||||
|
||||
for (ri = 0; ri < armv7_npmcs; ri++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue