mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
HV: Fix missing brackets for MISRA C Violations
Patch 5 of 7 Added changes to make sure Misra C violations are fixed for rules 11S and 12S. Signed-off-by: Arindam Roy <arindam.roy@intel.com>
This commit is contained in:
@@ -99,8 +99,9 @@ static void *get_kernel_load_addr(void *kernel_src_addr)
|
||||
* non-relocatable.
|
||||
*/
|
||||
zeropage = (struct zero_page *)kernel_src_addr;
|
||||
if (zeropage->hdr.relocatable_kernel != 0U)
|
||||
if (zeropage->hdr.relocatable_kernel != 0U) {
|
||||
return (void *)zeropage->hdr.pref_addr;
|
||||
}
|
||||
|
||||
return kernel_src_addr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user