aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/enic
diff options
context:
space:
mode:
authorRoopa Prabhu <roprabhu@cisco.com>2010-08-10 14:55:15 -0400
committerDavid S. Miller <davem@davemloft.net>2010-08-17 05:32:58 -0400
commitce16cc02f9fe21d4e42116305e5ea9d12e51635d (patch)
tree6fe4a3b48ab1ec0bb10c2c615cddb680cefc96bf /drivers/net/enic
parent7c46835e4845fed5f348f5845a3a6165874e2f05 (diff)
enic: Clean up: remove enic_dev_stats_clear
Remove function enic_dev_stats_clear and its reference in enic device init code. Firmware clears device stats on device open. So, no need for the driver to do it again. Signed-off-by: Scott Feldman <scofeldm@cisco.com> Signed-off-by: Roopa Prabhu <roprabhu@cisco.com> Signed-off-by: Vasanthy Kolluri <vkolluri@cisco.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/enic')
-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");