i40evf: remove useless function
authorHelin Zhang <helin.zhang@intel.com>
Tue, 24 Jun 2014 02:02:34 +0000 (10:02 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Jun 2014 10:15:03 +0000 (12:15 +0200)
i40evf_dev_atomic_read_link_status() was defined but not used.
To avoid possible warnings by some compilers, it needs to
delete the whole function.

Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Acked-by: Jing Chen <jing.d.chen@intel.com>
Acked-by: Cunming Liang <cunming.liang@intel.com>
lib/librte_pmd_i40e/i40e_ethdev_vf.c

index b9c1483..9750c6e 100644 (file)
@@ -882,20 +882,6 @@ static struct rte_pci_id pci_id_i40evf_map[] = {
 { .vendor_id = 0, /* sentinel */ },
 };
 
-static inline int
-i40evf_dev_atomic_read_link_status(struct rte_eth_dev *dev,
-                                  struct rte_eth_link *link)
-{
-       struct rte_eth_link *dst = link;
-       struct rte_eth_link *src = &(dev->data->dev_link);
-
-       if (rte_atomic64_cmpset((uint64_t *)dst, *(uint64_t *)dst,
-                                       *(uint64_t *)src) == 0)
-               return -1;
-
-       return 0;
-}
-
 static inline int
 i40evf_dev_atomic_write_link_status(struct rte_eth_dev *dev,
                                    struct rte_eth_link *link)