x86_64_acpi.c: cosmetic changes
cosmetic changes after review Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com> Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
6086b1410b
commit
37a6806bb4
|
@ -277,8 +277,7 @@ static bool acpi_rsdp_find_bios(struct acpi_s *acpi)
|
|||
|
||||
while (now < end)
|
||||
{
|
||||
if (strncmp(now, ACPI_SIG_RSDP,
|
||||
sizeof(ACPI_SIG_RSDP) - 1) == 0)
|
||||
if (strncmp(now, ACPI_SIG_RSDP, sizeof(ACPI_SIG_RSDP) - 1) == 0)
|
||||
{
|
||||
acpi->rsdp = (struct acpi_rsdp_s *)now;
|
||||
break;
|
||||
|
@ -331,7 +330,7 @@ static int acpi_table64_find(const char *sig, struct acpi_sdt_s **sdt)
|
|||
/* Compare signature */
|
||||
|
||||
tmp = (struct acpi_sdt_s *)(uintptr_t)*tp;
|
||||
if (!strncmp(tmp->signature, sig, 4))
|
||||
if (strncmp(tmp->signature, sig, 4) == 0)
|
||||
{
|
||||
*sdt = tmp;
|
||||
return OK;
|
||||
|
@ -368,7 +367,7 @@ static int acpi_table32_find(const char *sig, struct acpi_sdt_s **sdt)
|
|||
/* Compare signature */
|
||||
|
||||
tmp = (struct acpi_sdt_s *)(uintptr_t)*tp;
|
||||
if (!strncmp(tmp->signature, sig, 4))
|
||||
if (strncmp(tmp->signature, sig, 4) == 0)
|
||||
{
|
||||
*sdt = tmp;
|
||||
return OK;
|
||||
|
|
Loading…
Reference in New Issue