mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-09 02:24:45 +00:00
hv: treewide: fix 'Switch empty default has no comment'
This patch add some comments after the default and before the break in the switch statement based on MISRA-C requirement. Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
@@ -254,6 +254,12 @@ vioapic_indirect_read(struct vioapic *vioapic, uint32_t addr)
|
||||
case IOAPIC_ARB:
|
||||
return vioapic->id;
|
||||
default:
|
||||
/*
|
||||
* In this switch statement, regnum shall either be IOAPIC_ID or
|
||||
* IOAPIC_VER or IOAPIC_ARB.
|
||||
* All the other cases will be handled properly later after this
|
||||
* switch statement.
|
||||
*/
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -294,6 +300,12 @@ vioapic_indirect_write(struct vioapic *vioapic, uint32_t addr, uint32_t data)
|
||||
/* readonly */
|
||||
break;
|
||||
default:
|
||||
/*
|
||||
* In this switch statement, regnum shall either be IOAPIC_ID or
|
||||
* IOAPIC_VER or IOAPIC_ARB.
|
||||
* All the other cases will be handled properly later after this
|
||||
* switch statement.
|
||||
*/
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user