X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Flinuxapp%2Feal%2Feal_pci.c;h=d2adc66a5e407b8a6a766a7f32c339b66ac04efe;hb=6065355a03fc743234d4c11fc8e17093bf072617;hp=9cb0ffd919035f5fcd15d969239ca6f644ead088;hpb=be85defeeebf95a4c4e16bfde9aa6c9694bab66f;p=dpdk.git diff --git a/lib/librte_eal/linuxapp/eal/eal_pci.c b/lib/librte_eal/linuxapp/eal/eal_pci.c index 9cb0ffd919..d2adc66a5e 100644 --- a/lib/librte_eal/linuxapp/eal/eal_pci.c +++ b/lib/librte_eal/linuxapp/eal/eal_pci.c @@ -624,9 +624,9 @@ int rte_eal_pci_probe_one_driver(struct rte_pci_driver *dr, struct rte_pci_device *dev) { int ret; - struct rte_pci_id *id_table; + const struct rte_pci_id *id_table; - for (id_table = dr->id_table ; id_table->vendor_id != 0; id_table++) { + for (id_table = dr->id_table; id_table->vendor_id != 0; id_table++) { /* check if device's identifiers match the driver's ones */ if (id_table->vendor_id != dev->id.vendor_id && @@ -696,12 +696,12 @@ int rte_eal_pci_close_one_driver(struct rte_pci_driver *dr, struct rte_pci_device *dev) { - struct rte_pci_id *id_table; + const struct rte_pci_id *id_table; if ((dr == NULL) || (dev == NULL)) return -EINVAL; - for (id_table = dr->id_table ; id_table->vendor_id != 0; id_table++) { + for (id_table = dr->id_table; id_table->vendor_id != 0; id_table++) { /* check if device's identifiers match the driver's ones */ if (id_table->vendor_id != dev->id.vendor_id &&