mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 07:35:31 +00:00
fix parted of "missing for discarded return value"
MISRA C required that return value should be used, missing for it should add "(void)" prefix before the function call. Some function can be declared without return value to avoid this problem. Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -141,7 +141,7 @@ int hv_main(int cpu_id)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int get_vmexit_profile(char *str, int str_max)
|
||||
void get_vmexit_profile(char *str, int str_max)
|
||||
{
|
||||
int cpu, i, len, size = str_max;
|
||||
|
||||
@@ -173,5 +173,4 @@ int get_vmexit_profile(char *str, int str_max)
|
||||
}
|
||||
}
|
||||
snprintf(str, size, "\r\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user