Commit 966f4e9e authored by John W. Linville's avatar John W. Linville Committed by Jeff Garzik

[PATCH] r8169: simplify trick if() expression

Simplify tricky if() expression in rtl8169_vlan_rx_register().
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent 9758eeb8
......@@ -703,7 +703,8 @@ static void rtl8169_vlan_rx_register(struct net_device *dev,
unsigned long flags;
spin_lock_irqsave(&tp->lock, flags);
if ((tp->vlgrp = grp))
tp->vlgrp = grp;
if (tp->vlgrp)
tp->cp_cmd |= RxVlan;
else
tp->cp_cmd &= ~RxVlan;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment