mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-04-29 20:24:00 +00:00
To follow the Misra-c standard, any operators should be done outside the conditions. Removed the prefix, postfix and bitwise shift from conditions. Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com>
18 lines
280 B
C
18 lines
280 B
C
/*
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <hv_lib.h>
|
|
|
|
void mdelay(uint32_t loop_count)
|
|
{
|
|
/* Loop until done */
|
|
while (loop_count != 0) {
|
|
/* Delay for 1 ms */
|
|
udelay(1000);
|
|
loop_count--;
|
|
}
|
|
}
|