Commit ce16cc02 authored by Roopa Prabhu's avatar Roopa Prabhu Committed by David S. Miller

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: default avatarScott Feldman <scofeldm@cisco.com>
Signed-off-by: default avatarRoopa Prabhu <roprabhu@cisco.com>
Signed-off-by: default avatarVasanthy Kolluri <vkolluri@cisco.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7c46835e
...@@ -2154,17 +2154,6 @@ void enic_dev_deinit(struct enic *enic) ...@@ -2154,17 +2154,6 @@ void enic_dev_deinit(struct enic *enic)
enic_clear_intr_mode(enic); enic_clear_intr_mode(enic);
} }
static int enic_dev_stats_clear(struct enic *enic)
{
int err;
spin_lock(&enic->devcmd_lock);
err = vnic_dev_stats_clear(enic->vdev);
spin_unlock(&enic->devcmd_lock);
return err;
}
int enic_dev_init(struct enic *enic) int enic_dev_init(struct enic *enic)
{ {
struct device *dev = enic_get_dev(enic); struct device *dev = enic_get_dev(enic);
...@@ -2207,10 +2196,6 @@ int enic_dev_init(struct enic *enic) ...@@ -2207,10 +2196,6 @@ int enic_dev_init(struct enic *enic)
enic_init_vnic_resources(enic); enic_init_vnic_resources(enic);
/* Clear LIF stats
*/
enic_dev_stats_clear(enic);
err = enic_set_rq_alloc_buf(enic); err = enic_set_rq_alloc_buf(enic);
if (err) { if (err) {
dev_err(dev, "Failed to set RQ buffer allocator, aborting\n"); dev_err(dev, "Failed to set RQ buffer allocator, aborting\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment