pci: fix error code comment
authorHuawei Xie <huawei.xie@intel.com>
Tue, 8 Mar 2016 15:33:38 +0000 (23:33 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 9 Mar 2016 23:36:51 +0000 (00:36 +0100)
positive return of devinit of pci driver means the driver doesn't support
this device.

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: David Marchand <david.marchand@6wind.com>
lib/librte_eal/common/eal_common_pci.c

index 366fb46..40f4922 100644 (file)
@@ -197,7 +197,7 @@ rte_eal_pci_probe_one_driver(struct rte_pci_driver *dr, struct rte_pci_device *d
                /* call the driver devinit() function */
                return dr->devinit(dr, dev);
        }
-       /* return positive value if driver is not found */
+       /* return positive value if driver doesn't support this device */
        return 1;
 }
 
@@ -252,7 +252,7 @@ rte_eal_pci_detach_dev(struct rte_pci_driver *dr,
                return 0;
        }
 
-       /* return positive value if driver is not found */
+       /* return positive value if driver doesn't support this device */
        return 1;
 }
 
@@ -276,7 +276,7 @@ pci_probe_all_drivers(struct rte_pci_device *dev)
                        /* negative value is an error */
                        return -1;
                if (rc > 0)
-                       /* positive value means driver not found */
+                       /* positive value means driver doesn't support it */
                        continue;
                return 0;
        }
@@ -303,7 +303,7 @@ pci_detach_all_drivers(struct rte_pci_device *dev)
                        /* negative value is an error */
                        return -1;
                if (rc > 0)
-                       /* positive value means driver not found */
+                       /* positive value means driver doesn't support it */
                        continue;
                return 0;
        }