Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279163
b: refs/heads/master
c: f872b23
h: refs/heads/master
i:
  279161: 3b55388
  279159: 3afb029
v: v3
  • Loading branch information
Jason Wang authored and David S. Miller committed Jan 3, 2012
1 parent 7bcbd2b commit d2ec516
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7d03f5a48e4d90854275b06433626243b3b3db17
refs/heads/master: f872b237c1750221932e715da2552225afe4a95c
9 changes: 3 additions & 6 deletions trunk/drivers/net/ethernet/realtek/8139cp.c
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,6 @@ static void __cp_set_rx_mode (struct net_device *dev)
struct cp_private *cp = netdev_priv(dev);
u32 mc_filter[2]; /* Multicast hash filter */
int rx_mode;
u32 tmp;

/* Note: do not reorder, GCC is clever about common statements. */
if (dev->flags & IFF_PROMISC) {
Expand All @@ -886,11 +885,9 @@ static void __cp_set_rx_mode (struct net_device *dev)
}

/* We can safely update without stopping the chip. */
tmp = cp_rx_config | rx_mode;
if (cp->rx_config != tmp) {
cpw32_f (RxConfig, tmp);
cp->rx_config = tmp;
}
cp->rx_config = cp_rx_config | rx_mode;
cpw32_f(RxConfig, cp->rx_config);

cpw32_f (MAR0 + 0, mc_filter[0]);
cpw32_f (MAR0 + 4, mc_filter[1]);
}
Expand Down

0 comments on commit d2ec516

Please sign in to comment.