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:
Dmitry Chagin 2023-01-29 15:33:16 +03:00
parent fcab90d8e5
commit e600dd820d

View file

@ -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;