]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
igb: remove unused vmolr value
authorNick Nunley <nicholasx.d.nunley@intel.com>
Wed, 17 Feb 2010 01:05:15 +0000 (01:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2010 21:21:38 +0000 (13:21 -0800)
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>
drivers/net/igb/igb_main.c

index ff392e999ffc6146a0d70912e7a9e80f827b894e..a9f4e028840920272b0a6c1df42790f29b788210 100644 (file)
@@ -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)) {
@@ -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;