hv: some coding style fixes

Fix issues reported by checkpatch.pl

Tracked-On: #5917
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
This commit is contained in:
dongshen
2021-05-06 14:14:39 -07:00
committed by wenlingz
parent f7ef46f0d9
commit ebadf00de8
7 changed files with 20 additions and 25 deletions

View File

@@ -440,7 +440,7 @@ static int32_t profiling_generate_data(int32_t collector, uint32_t type)
ret = -1;
break;
}
if (ret == -1){
if (ret == -1) {
return 0;
}
pkt_header.payload_size = payload_size;
@@ -683,8 +683,7 @@ static void profiling_pmi_handler(uint32_t irq, __unused void *data)
if (msrop->msr_id != MSR_IA32_PERF_GLOBAL_CTRL) {
msr_write(msrop->msr_id, msrop->value);
}
}
else {
} else {
if (((perf_ovf_status >> msrop->param) & 0x1U) > 0U) {
msr_write(msrop->msr_id, msrop->value);
}
@@ -1391,6 +1390,7 @@ void profiling_setup(void)
{
uint16_t cpu;
int32_t retval;
dev_dbg(DBG_LEVEL_PROFILING, "%s: entering", __func__);
cpu = get_pcpu_id();
/* support PMI notification, SOS_VM will register all CPU */