Commit 81e3f64a authored by Benjamin Poirier's avatar Benjamin Poirier Committed by Jeff Kirsher

igb: Remove useless argument

Given that all callers of igb_update_stats() pass the same two arguments:
(adapter, &adapter->stats64), the second argument can be removed.
Signed-off-by: default avatarBenjamin Poirier <bpoirier@suse.com>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent e5f36ad1
...@@ -667,7 +667,7 @@ void igb_setup_tctl(struct igb_adapter *); ...@@ -667,7 +667,7 @@ void igb_setup_tctl(struct igb_adapter *);
void igb_setup_rctl(struct igb_adapter *); void igb_setup_rctl(struct igb_adapter *);
netdev_tx_t igb_xmit_frame_ring(struct sk_buff *, struct igb_ring *); netdev_tx_t igb_xmit_frame_ring(struct sk_buff *, struct igb_ring *);
void igb_alloc_rx_buffers(struct igb_ring *, u16); void igb_alloc_rx_buffers(struct igb_ring *, u16);
void igb_update_stats(struct igb_adapter *, struct rtnl_link_stats64 *); void igb_update_stats(struct igb_adapter *);
bool igb_has_link(struct igb_adapter *adapter); bool igb_has_link(struct igb_adapter *adapter);
void igb_set_ethtool_ops(struct net_device *); void igb_set_ethtool_ops(struct net_device *);
void igb_power_up_link(struct igb_adapter *); void igb_power_up_link(struct igb_adapter *);
......
...@@ -2316,7 +2316,7 @@ static void igb_get_ethtool_stats(struct net_device *netdev, ...@@ -2316,7 +2316,7 @@ static void igb_get_ethtool_stats(struct net_device *netdev,
char *p; char *p;
spin_lock(&adapter->stats64_lock); spin_lock(&adapter->stats64_lock);
igb_update_stats(adapter, net_stats); igb_update_stats(adapter);
for (i = 0; i < IGB_GLOBAL_STATS_LEN; i++) { for (i = 0; i < IGB_GLOBAL_STATS_LEN; i++) {
p = (char *)adapter + igb_gstrings_stats[i].stat_offset; p = (char *)adapter + igb_gstrings_stats[i].stat_offset;
......
...@@ -1818,7 +1818,7 @@ void igb_down(struct igb_adapter *adapter) ...@@ -1818,7 +1818,7 @@ void igb_down(struct igb_adapter *adapter)
/* record the stats before reset*/ /* record the stats before reset*/
spin_lock(&adapter->stats64_lock); spin_lock(&adapter->stats64_lock);
igb_update_stats(adapter, &adapter->stats64); igb_update_stats(adapter);
spin_unlock(&adapter->stats64_lock); spin_unlock(&adapter->stats64_lock);
adapter->link_speed = 0; adapter->link_speed = 0;
...@@ -4686,7 +4686,7 @@ static void igb_watchdog_task(struct work_struct *work) ...@@ -4686,7 +4686,7 @@ static void igb_watchdog_task(struct work_struct *work)
} }
spin_lock(&adapter->stats64_lock); spin_lock(&adapter->stats64_lock);
igb_update_stats(adapter, &adapter->stats64); igb_update_stats(adapter);
spin_unlock(&adapter->stats64_lock); spin_unlock(&adapter->stats64_lock);
for (i = 0; i < adapter->num_tx_queues; i++) { for (i = 0; i < adapter->num_tx_queues; i++) {
...@@ -5499,7 +5499,7 @@ static void igb_get_stats64(struct net_device *netdev, ...@@ -5499,7 +5499,7 @@ static void igb_get_stats64(struct net_device *netdev,
struct igb_adapter *adapter = netdev_priv(netdev); struct igb_adapter *adapter = netdev_priv(netdev);
spin_lock(&adapter->stats64_lock); spin_lock(&adapter->stats64_lock);
igb_update_stats(adapter, &adapter->stats64); igb_update_stats(adapter);
memcpy(stats, &adapter->stats64, sizeof(*stats)); memcpy(stats, &adapter->stats64, sizeof(*stats));
spin_unlock(&adapter->stats64_lock); spin_unlock(&adapter->stats64_lock);
} }
...@@ -5548,9 +5548,9 @@ static int igb_change_mtu(struct net_device *netdev, int new_mtu) ...@@ -5548,9 +5548,9 @@ static int igb_change_mtu(struct net_device *netdev, int new_mtu)
* igb_update_stats - Update the board statistics counters * igb_update_stats - Update the board statistics counters
* @adapter: board private structure * @adapter: board private structure
**/ **/
void igb_update_stats(struct igb_adapter *adapter, void igb_update_stats(struct igb_adapter *adapter)
struct rtnl_link_stats64 *net_stats)
{ {
struct rtnl_link_stats64 *net_stats = &adapter->stats64;
struct e1000_hw *hw = &adapter->hw; struct e1000_hw *hw = &adapter->hw;
struct pci_dev *pdev = adapter->pdev; struct pci_dev *pdev = adapter->pdev;
u32 reg, mpc; u32 reg, mpc;
......
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