Re: [PATCH] dmi_check_system can generate Warnings when no DMItable is present

From: Daniel Walker
Date: Fri Oct 23 2009 - 06:09:17 EST


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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/