mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-15 13:59:18 +00:00
HV: Assignment should not mix with operator
Removed the postfix and prefix operation in assignment expression. Noncompliant code example: 1) *a++ = *b ++; 2) a = arr[--b]; Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com>
This commit is contained in:
@@ -236,7 +236,8 @@ static uint16_t _parse_madt(void *madt, uint8_t *lapic_id_base)
|
||||
if (entry->type == ACPI_MADT_TYPE_LOCAL_APIC) {
|
||||
processor = (struct acpi_madt_local_apic *)entry;
|
||||
if ((processor->lapic_flags & ACPI_MADT_ENABLED) != 0U) {
|
||||
*lapic_id_base++ = processor->id;
|
||||
*lapic_id_base = processor->id;
|
||||
lapic_id_base++;
|
||||
pcpu_id++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user