mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
HV: Logical conjunction needs brackets
The bracket is required when the level of precedence of the operators is less than 13. Add the bracket to logical conjunctions. The commit applys the rule to the files under Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -183,7 +183,7 @@ static void *get_acpi_tbl(const char *sig)
|
||||
|
||||
rsdp = (struct acpi_table_rsdp *)global_rsdp;
|
||||
|
||||
if (rsdp->revision >= 2 && (rsdp->xsdt_physical_address != 0U)) {
|
||||
if ((rsdp->revision >= 2) && (rsdp->xsdt_physical_address != 0U)) {
|
||||
/*
|
||||
* AcpiOsGetRootPointer only verifies the checksum for
|
||||
* the version 1.0 portion of the RSDP. Version 2.0 has
|
||||
|
@@ -55,7 +55,7 @@ static void parse_other_modules(struct vm *vm,
|
||||
}
|
||||
|
||||
end = start;
|
||||
while (*end != ' ' && (*end) != '\0') {
|
||||
while (((*end) != ' ') && ((*end) != '\0')) {
|
||||
end++;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user