Skip to content

Commit

Permalink
igb: remove unused vmolr value
Browse files Browse the repository at this point in the history
In an earlier version of igb_write_mc_addr_list() the vmolr register
was modified. This register is no longer accessed, although the variable
still exists. This patch removes it from the function.

Signed-off-by: Nicholas Nunley <nicholasx.d.nunley@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Nick Nunley authored and David S. Miller committed Feb 17, 2010
1 parent 91d4ee3 commit d3eeb62
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/net/igb/igb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2883,7 +2883,6 @@ static int igb_write_mc_addr_list(struct net_device *netdev)
struct e1000_hw *hw = &adapter->hw;
struct dev_mc_list *mc_ptr = netdev->mc_list;
u8 *mta_list;
u32 vmolr = 0;
int i;

if (netdev_mc_empty(netdev)) {
Expand All @@ -2897,9 +2896,6 @@ static int igb_write_mc_addr_list(struct net_device *netdev)
if (!mta_list)
return -ENOMEM;

/* set vmolr receive overflow multicast bit */
vmolr |= E1000_VMOLR_ROMPE;

/* The shared function expects a packed array of only addresses. */
mc_ptr = netdev->mc_list;

Expand Down

0 comments on commit d3eeb62

Please sign in to comment.