mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
HV: Fix missing brackets for MISRA C Violations
Patch 6 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:
@@ -88,8 +88,9 @@ int udiv64(uint64_t dividend, uint64_t divisor, struct udiv_result *res)
|
||||
/* simplified case: only 32 bit operands Note that the preconditions
|
||||
* for do_udiv32() are fulfilled, since the tests were made above.
|
||||
*/
|
||||
if (((divisor >> 32UL) == 0UL) && ((dividend >> 32UL) == 0UL))
|
||||
if (((divisor >> 32UL) == 0UL) && ((dividend >> 32UL) == 0UL)) {
|
||||
return do_udiv32((uint32_t) dividend, (uint32_t) divisor, res);
|
||||
}
|
||||
|
||||
/* dividend is always greater than or equal to the divisor. Neither
|
||||
* divisor nor dividend are 0. Thus: * clz(dividend) and clz(divisor)
|
||||
|
Reference in New Issue
Block a user