/* Walk the blacklist table until the first match is found. Return the pointer to the matching entry or NULL if there's no match.  */
const struct dmi_system_id* dmi_first_match(const struct dmi_system_id *list)
/* Walk the blacklist table until the first match is found. Return the pointer to the matching entry or NULL if there's no match.  */
const struct dmi_system_id* dmi_first_match(const struct dmi_system_id *list)
{
	const struct dmi_system_id *d;
	for (d = list; !dmi_is_end_of_table(d); d++)
		if (dmi_matches(d))
			return d;
	return NULL;
}