Skip to content

Commit 315d03c

Browse files
authored
Delete unused variable "core_apic_id" (#272)
(Diagnosed by -Wunused-variable)
1 parent 317b8b5 commit 315d03c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/x86/windows/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,6 @@ BOOL CALLBACK cpuinfo_x86_windows_init(PINIT_ONCE init_once, PVOID parameter, PV
265265
* APIC order */
266266
const uint32_t core_id = cores_count++;
267267
uint32_t smt_id = 0;
268-
/* Reconstruct core part of APIC ID */
269-
const uint32_t core_apic_id = (core_id & core_bits_mask) << x86_processor.topology.core_bits_offset;
270268
/* Iterate processor groups and set the core & SMT parts of APIC
271269
* ID */
272270
for (uint32_t i = 0; i < core_info->Processor.GroupCount; i++) {

0 commit comments

Comments
 (0)