On 8/7/06, Björn Steinbrink <[email protected]> wrote:
On 2006.08.07 18:13:06 +0300, Shem Multinymous wrote: > >> + struct dmi_device *dev = NULL; > >unneeded initializer. > On a local variable?! You assign a new value to it on the next line, without ever using its initial value.
The initial value is used in the last parameter to dmi_find_device(): struct dmi_device *dev = NULL; while ((dev = dmi_find_device(type, NULL, dev))) { if (strstr(dev->name, substr)) return 1; } Shem - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 01/12] thinkpad_ec: New driver for ThinkPad embedded controller access
- From: Björn Steinbrink <[email protected]>
- Re: [PATCH 01/12] thinkpad_ec: New driver for ThinkPad embedded controller access
- References:
- [PATCH 00/12] ThinkPad embedded controller and hdaps drivers
- From: Shem Multinymous <[email protected]>
- [PATCH 01/12] thinkpad_ec: New driver for ThinkPad embedded controller access
- From: Shem Multinymous <[email protected]>
- Re: [PATCH 01/12] thinkpad_ec: New driver for ThinkPad embedded controller access
- From: Pavel Machek <[email protected]>
- Re: [PATCH 01/12] thinkpad_ec: New driver for ThinkPad embedded controller access
- From: "Shem Multinymous" <[email protected]>
- Re: [PATCH 01/12] thinkpad_ec: New driver for ThinkPad embedded controller access
- From: Björn Steinbrink <[email protected]>
- [PATCH 00/12] ThinkPad embedded controller and hdaps drivers
- Prev by Date: Re: [RFC, PATCH 0/5] Going forward with Resource Management - A cpu controller
- Next by Date: Re: [PATCH] x86_64: Make NR_IRQS configurable in Kconfig
- Previous by thread: Re: [PATCH 01/12] thinkpad_ec: New driver for ThinkPad embedded controller access
- Next by thread: Re: [PATCH 01/12] thinkpad_ec: New driver for ThinkPad embedded controller access
- Index(es):