]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
Caps: fixed silly bug introduced in d7d9e30534eb55145e7033018ee945b09de6928a
authorMartin Mares <mj@ucw.cz>
Mon, 12 Nov 2018 21:22:16 +0000 (22:22 +0100)
committerMartin Mares <mj@ucw.cz>
Mon, 12 Nov 2018 21:22:16 +0000 (22:22 +0100)
lib/caps.c

index 4267adbf0134ee512b82c988ad1bf64c65876257..00b9653fa75253757cfc7e44de4dd38766e2b03e 100644 (file)
@@ -133,8 +133,8 @@ pci_find_cap_nr(struct pci_dev *d, unsigned int id, unsigned int type,
        {
          if (target == index)
            found = c;
+         index++;
        }
-      index++;
     }
 
   if (cap_number)