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 <[email protected]>
Acked-by: Sven Schnelle <[email protected]>

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;

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to