On Wed, Feb 12, 2014 at 12:26:14PM +0100, Sebastian Hesselbarth wrote: > You can cook it down to: > > m = matches; > /* Check against matches without compatible string */ > while (m->name[0] || m->type[0] || m->compatible[0]) { > if (!m->compatible[0] && of_match_type_or_name(node, m) > return m; > m++; > } Will do. Thanks, Kevin