提交 d3eeb62d 编写于 作者: N Nick Nunley 提交者: David S. Miller

igb: remove unused vmolr value

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: NNicholas Nunley <nicholasx.d.nunley@intel.com>
Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 91d4ee33
...@@ -2883,7 +2883,6 @@ static int igb_write_mc_addr_list(struct net_device *netdev) ...@@ -2883,7 +2883,6 @@ static int igb_write_mc_addr_list(struct net_device *netdev)
struct e1000_hw *hw = &adapter->hw; struct e1000_hw *hw = &adapter->hw;
struct dev_mc_list *mc_ptr = netdev->mc_list; struct dev_mc_list *mc_ptr = netdev->mc_list;
u8 *mta_list; u8 *mta_list;
u32 vmolr = 0;
int i; int i;
if (netdev_mc_empty(netdev)) { if (netdev_mc_empty(netdev)) {
...@@ -2897,9 +2896,6 @@ static int igb_write_mc_addr_list(struct net_device *netdev) ...@@ -2897,9 +2896,6 @@ static int igb_write_mc_addr_list(struct net_device *netdev)
if (!mta_list) if (!mta_list)
return -ENOMEM; return -ENOMEM;
/* set vmolr receive overflow multicast bit */
vmolr |= E1000_VMOLR_ROMPE;
/* The shared function expects a packed array of only addresses. */ /* The shared function expects a packed array of only addresses. */
mc_ptr = netdev->mc_list; mc_ptr = netdev->mc_list;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册