Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b44a8a0 authored by Tony Nguyen's avatar Tony Nguyen Committed by Jeff Kirsher
Browse files

ixgbevf: Remove unused parameter



ixgbevf_update_xcast_mode() is not using the netdev parameter;
removing it since it's unnecessary.

Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 8829009d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1922,7 +1922,7 @@ static void ixgbevf_set_rx_mode(struct net_device *netdev)


	spin_lock_bh(&adapter->mbx_lock);
	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 */
	/* reprogram multicast list */
	hw->mac.ops.update_mc_addr_list(hw, netdev);
	hw->mac.ops.update_mc_addr_list(hw, netdev);
+2 −6
Original line number Original line Diff line number Diff line
@@ -536,13 +536,11 @@ static s32 ixgbevf_hv_update_mc_addr_list_vf(struct ixgbe_hw *hw,
/**
/**
 *  ixgbevf_update_xcast_mode - Update Multicast mode
 *  ixgbevf_update_xcast_mode - Update Multicast mode
 *  @hw: pointer to the HW structure
 *  @hw: pointer to the HW structure
 *  @netdev: pointer to net device structure
 *  @xcast_mode: new multicast mode
 *  @xcast_mode: new multicast mode
 *
 *
 *  Updates the Multicast Mode of VF.
 *  Updates the Multicast Mode of VF.
 **/
 **/
static s32 ixgbevf_update_xcast_mode(struct ixgbe_hw *hw,
static s32 ixgbevf_update_xcast_mode(struct ixgbe_hw *hw, int xcast_mode)
				     struct net_device *netdev, int xcast_mode)
{
{
	struct ixgbe_mbx_info *mbx = &hw->mbx;
	struct ixgbe_mbx_info *mbx = &hw->mbx;
	u32 msgbuf[2];
	u32 msgbuf[2];
@@ -576,9 +574,7 @@ static s32 ixgbevf_update_xcast_mode(struct ixgbe_hw *hw,
/**
/**
 * Hyper-V variant - just a stub.
 * Hyper-V variant - just a stub.
 */
 */
static s32 ixgbevf_hv_update_xcast_mode(struct ixgbe_hw *hw,
static s32 ixgbevf_hv_update_xcast_mode(struct ixgbe_hw *hw, int xcast_mode)
					struct net_device *netdev,
					int xcast_mode)
{
{
	return -EOPNOTSUPP;
	return -EOPNOTSUPP;
}
}
+1 −1
Original line number Original line Diff line number Diff line
@@ -64,7 +64,7 @@ struct ixgbe_mac_operations {
	s32 (*set_uc_addr)(struct ixgbe_hw *, u32, u8 *);
	s32 (*set_uc_addr)(struct ixgbe_hw *, u32, u8 *);
	s32 (*init_rx_addrs)(struct ixgbe_hw *);
	s32 (*init_rx_addrs)(struct ixgbe_hw *);
	s32 (*update_mc_addr_list)(struct ixgbe_hw *, struct net_device *);
	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 (*enable_mc)(struct ixgbe_hw *);
	s32 (*disable_mc)(struct ixgbe_hw *);
	s32 (*disable_mc)(struct ixgbe_hw *);
	s32 (*clear_vfta)(struct ixgbe_hw *);
	s32 (*clear_vfta)(struct ixgbe_hw *);