/* dmi_matches - check if dmi_system_id structure matches system DMI data @dmi: pointer to the dmi_system_id structure to check  */
static bool dmi_matches(const struct dmi_system_id *dmi)
/* dmi_matches - check if dmi_system_id structure matches system DMI data @dmi: pointer to the dmi_system_id structure to check  */
static bool dmi_matches(const struct dmi_system_id *dmi)
{
	int i;
	WARN(!dmi_initialized, KERN_ERR "dmi check: not initialized yet.\n");
	for (i = 0; i < ARRAY_SIZE(dmi->matches); i++) {
		int s = dmi->matches[i].slot;
		if (s == DMI_NONE)
			break;
		if (dmi_ident[s]
		    && strstr(dmi_ident[s], dmi->matches[i].substr))
			continue;
		return false;
	}
	return true;
}