Messages in this thread | | | Date | Tue, 9 Dec 2008 20:59:49 +0000 | From | Alan Cox <> | Subject | Re: [PATCH 1/2] DMI: add dmi_match |
| |
> +static inline bool dmi_match(enum dmi_field f, const char *str) > +{ > + const char *info = dmi_get_system_info(f); > + > + if (info == NULL || str == NULL) > + return info == str; > + > + return !strcmp(info, str);
Not sure it is worth inlining but its definitely better this way
ACK
| |