mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
smp: Drop confusing braces and return statement as panic() is never returns.
Reviewed by: imp, kib
Differential Revision: https://reviews.freebsd.org/D38235
MFC after: 1 week
(cherry picked from commit 6fdf04a2be)
This commit is contained in:
parent
fcab90d8e5
commit
e600dd820d
1 changed files with 2 additions and 3 deletions
|
|
@ -983,10 +983,9 @@ void
|
|||
cpu_add(u_int apic_id, char boot_cpu)
|
||||
{
|
||||
|
||||
if (apic_id > max_apic_id) {
|
||||
if (apic_id > max_apic_id)
|
||||
panic("SMP: APIC ID %d too high", apic_id);
|
||||
return;
|
||||
}
|
||||
|
||||
KASSERT(cpu_info[apic_id].cpu_present == 0, ("CPU %u added twice",
|
||||
apic_id));
|
||||
cpu_info[apic_id].cpu_present = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue