Skip to content

Commit

Permalink
enic: Clean up: remove enic_dev_stats_clear
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roopa Prabhu authored and David S. Miller committed Aug 17, 2010
1 parent 7c46835 commit ce16cc0
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions drivers/net/enic/enic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2154,17 +2154,6 @@ void enic_dev_deinit(struct enic *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)
{
struct device *dev = enic_get_dev(enic);
Expand Down Expand Up @@ -2207,10 +2196,6 @@ int enic_dev_init(struct enic *enic)

enic_init_vnic_resources(enic);

/* Clear LIF stats
*/
enic_dev_stats_clear(enic);

err = enic_set_rq_alloc_buf(enic);
if (err) {
dev_err(dev, "Failed to set RQ buffer allocator, aborting\n");
Expand Down

0 comments on commit ce16cc0

Please sign in to comment.