Messages in this thread | | | Subject | Re: [PATCH] dmi_check_system can generate Warnings when no DMI table is present | From | Daniel Walker <> | Date | Fri, 23 Oct 2009 03:08:57 -0700 |
| |
On Fri, 2009-10-23 at 11:34 +0200, Erwan Velu wrote: > diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c > index 938100f..ea8b433 100644 > --- a/drivers/firmware/dmi_scan.c > +++ b/drivers/firmware/dmi_scan.c > @@ -457,6 +457,9 @@ int dmi_check_system(const struct dmi_system_id > *list) > int count = 0; > const struct dmi_system_id *d; > > + if (!dmi_available) > + return 0; > + > for (d = list; d->ident; d++) > if (dmi_matches(d)) { > count++;
It looks like all the tabs have been removed from the code. Did you copy and paste the patch content into this email? Often times that will remove the tabs.
Daniel
| |