diff options
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/acpica/acpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index eeb325c..5095c54 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -644,13 +644,13 @@ acpi_MatchHid(device_t dev, char *hid) ACPI_DEVICE_INFO devinfo; ACPI_STATUS error; - if ((hid == NULL) || (strlen(hid) != 7)) + if (hid == NULL) return(FALSE); if ((h = acpi_get_handle(dev)) == NULL) return(FALSE); if ((error = AcpiGetObjectInfo(h, &devinfo)) != AE_OK) return(FALSE); - if ((devinfo.Valid & ACPI_VALID_HID) && !strncmp(hid, devinfo.HardwareId, 7)) + if ((devinfo.Valid & ACPI_VALID_HID) && !strcmp(hid, devinfo.HardwareId)) return(TRUE); return(FALSE); } |