]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ixgbevf: Remove unused parameter
authorTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 27 Apr 2016 21:14:14 +0000 (14:14 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 4 May 2016 07:24:32 +0000 (00:24 -0700)
ixgbevf_update_xcast_mode() is not using the netdev parameter;
removing it since it's unnecessary.

Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
drivers/net/ethernet/intel/ixgbevf/vf.c
drivers/net/ethernet/intel/ixgbevf/vf.h

index ba17a6193034122f5552fc3ee2cd33b8e2a5cf4f..5e348b1250901bcfe8549d892f0159141bdc2a37 100644 (file)
@@ -1922,7 +1922,7 @@ static void ixgbevf_set_rx_mode(struct net_device *netdev)
 
        spin_lock_bh(&adapter->mbx_lock);
 
-       hw->mac.ops.update_xcast_mode(hw, netdev, xcast_mode);
+       hw->mac.ops.update_xcast_mode(hw, xcast_mode);
 
        /* reprogram multicast list */
        hw->mac.ops.update_mc_addr_list(hw, netdev);
index f66055aa06748f0cef376e0cb3bfdefe222aed7d..e670d3b19c3c2eabf5e2f95f9cee59d9389d8299 100644 (file)
@@ -536,13 +536,11 @@ static s32 ixgbevf_hv_update_mc_addr_list_vf(struct ixgbe_hw *hw,
 /**
  *  ixgbevf_update_xcast_mode - Update Multicast mode
  *  @hw: pointer to the HW structure
- *  @netdev: pointer to net device structure
  *  @xcast_mode: new multicast mode
  *
  *  Updates the Multicast Mode of VF.
  **/
-static s32 ixgbevf_update_xcast_mode(struct ixgbe_hw *hw,
-                                    struct net_device *netdev, int xcast_mode)
+static s32 ixgbevf_update_xcast_mode(struct ixgbe_hw *hw, int xcast_mode)
 {
        struct ixgbe_mbx_info *mbx = &hw->mbx;
        u32 msgbuf[2];
@@ -576,9 +574,7 @@ static s32 ixgbevf_update_xcast_mode(struct ixgbe_hw *hw,
 /**
  * Hyper-V variant - just a stub.
  */
-static s32 ixgbevf_hv_update_xcast_mode(struct ixgbe_hw *hw,
-                                       struct net_device *netdev,
-                                       int xcast_mode)
+static s32 ixgbevf_hv_update_xcast_mode(struct ixgbe_hw *hw, int xcast_mode)
 {
        return -EOPNOTSUPP;
 }
index 6770f101aa45b8a3d4d408ba40c9a7c872b50715..2cac610f32ba64832f7abd76b04be5edcd3acac0 100644 (file)
@@ -64,7 +64,7 @@ struct ixgbe_mac_operations {
        s32 (*set_uc_addr)(struct ixgbe_hw *, u32, u8 *);
        s32 (*init_rx_addrs)(struct ixgbe_hw *);
        s32 (*update_mc_addr_list)(struct ixgbe_hw *, struct net_device *);
-       s32 (*update_xcast_mode)(struct ixgbe_hw *, struct net_device *, int);
+       s32 (*update_xcast_mode)(struct ixgbe_hw *, int);
        s32 (*enable_mc)(struct ixgbe_hw *);
        s32 (*disable_mc)(struct ixgbe_hw *);
        s32 (*clear_vfta)(struct ixgbe_hw *);