Author: svens Date: Tue Mar 1 22:57:11 2011 New Revision: 6424 URL: https://tracker.coreboot.org/trac/coreboot/changeset/6424
Log: [SCONFIG] remove unused variable in inherit_subsystem_ids()
i is a leftover from debugging, no longer needed. So just remove it.
Signed-off-by: Sylvain "ythier" Hitier sylvain.hitier@gmail.com Acked-by: Sven Schnelle svens@stackframe.org
Modified: trunk/util/sconfig/main.c
Modified: trunk/util/sconfig/main.c ============================================================================== --- trunk/util/sconfig/main.c Tue Mar 1 22:51:29 2011 (r6423) +++ trunk/util/sconfig/main.c Tue Mar 1 22:57:11 2011 (r6424) @@ -415,14 +415,13 @@ static void inherit_subsystem_ids(FILE *file, struct device *dev) { struct device *p; - int i =0;
if (dev->subsystem_vendor != -1 && dev->subsystem_device != -1) { /* user already gave us a subsystem vendor/device */ return; }
- for(p = dev; p && p != p->parent; (p = p->parent), i++) { + for(p = dev; p && p != p->parent; p = p->parent) {
if (p->bustype != PCI && p->bustype != PCI_DOMAIN) continue;