aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/enic/enic_main.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
index 6f6c5dc36197..711077a2e345 100644
--- a/drivers/net/enic/enic_main.c
+++ b/drivers/net/enic/enic_main.c
@@ -2154,17 +2154,6 @@ void enic_dev_deinit(struct enic *enic)
2154 enic_clear_intr_mode(enic); 2154 enic_clear_intr_mode(enic);
2155} 2155}
2156 2156
2157static int enic_dev_stats_clear(struct enic *enic)
2158{
2159 int err;
2160
2161 spin_lock(&enic->devcmd_lock);
2162 err = vnic_dev_stats_clear(enic->vdev);
2163 spin_unlock(&enic->devcmd_lock);
2164
2165 return err;
2166}
2167
2168int enic_dev_init(struct enic *enic) 2157int enic_dev_init(struct enic *enic)
2169{ 2158{
2170 struct device *dev = enic_get_dev(enic); 2159 struct device *dev = enic_get_dev(enic);
@@ -2207,10 +2196,6 @@ int enic_dev_init(struct enic *enic)
2207 2196
2208 enic_init_vnic_resources(enic); 2197 enic_init_vnic_resources(enic);
2209 2198
2210 /* Clear LIF stats
2211 */
2212 enic_dev_stats_clear(enic);
2213
2214 err = enic_set_rq_alloc_buf(enic); 2199 err = enic_set_rq_alloc_buf(enic);
2215 if (err) { 2200 if (err) {
2216 dev_err(dev, "Failed to set RQ buffer allocator, aborting\n"); 2201 dev_err(dev, "Failed to set RQ buffer allocator, aborting\n");