ehea: simplify conditional

Simplify: ((a && b) || (!a && !b)) => (a == b)

Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
Acked-by: Breno Leitao <leitao@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Nicolas Kaiser 2010-10-07 13:14:50 +00:00 committed by David S. Miller
parent e18434c457
commit aa3bc6c68e
1 changed files with 1 additions and 1 deletions

View File

@ -1918,7 +1918,7 @@ static void ehea_promiscuous(struct net_device *dev, int enable)
struct hcp_ehea_port_cb7 *cb7;
u64 hret;
if ((enable && port->promisc) || (!enable && !port->promisc))
if (enable == port->promisc)
return;
cb7 = (void *)get_zeroed_page(GFP_ATOMIC);