mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 07:35:31 +00:00
hv: fix 'No brackets to then/else'
- add missing brackets for 'if/else' statements based on MISRA-C requirements v1 -> v2: * add brackets for each conditions in 'if' statements to improve the readability * modify 'ptdev_init' to make the logic clearer Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
This commit is contained in:
@@ -661,9 +661,9 @@ static int shell_vcpu_dumpreg(int argc, char **argv)
|
||||
dump.vcpu = vcpu;
|
||||
dump.str = shell_log_buf;
|
||||
dump.str_max = CPU_PAGE_SIZE;
|
||||
if (vcpu->pcpu_id == get_cpu_id())
|
||||
if (vcpu->pcpu_id == get_cpu_id()) {
|
||||
vcpu_dumpreg(&dump);
|
||||
else {
|
||||
} else {
|
||||
bitmap_set_nolock(vcpu->pcpu_id, &mask);
|
||||
smp_call_function(mask, vcpu_dumpreg, &dump);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user