|
@@ -442,7 +442,6 @@ static int __init dmi_present(const char __iomem *p)
|
|
|
static int __init smbios_present(const char __iomem *p)
|
|
|
{
|
|
|
u8 buf[32];
|
|
|
- int offset = 0;
|
|
|
|
|
|
memcpy_fromio(buf, p, 32);
|
|
|
if ((buf[5] < 32) && dmi_checksum(buf, buf[5])) {
|
|
@@ -461,9 +460,9 @@ static int __init smbios_present(const char __iomem *p)
|
|
|
dmi_ver = 0x0206;
|
|
|
break;
|
|
|
}
|
|
|
- offset = 16;
|
|
|
+ return memcmp(p + 16, "_DMI_", 5) || dmi_present(p + 16);
|
|
|
}
|
|
|
- return dmi_present(buf + offset);
|
|
|
+ return 1;
|
|
|
}
|
|
|
|
|
|
void __init dmi_scan_machine(void)
|