Commit aa3bc6c6 authored by Nicolas Kaiser's avatar Nicolas Kaiser Committed by David S. Miller

ehea: simplify conditional

Simplify: ((a && b) || (!a && !b)) => (a == b)
Signed-off-by: default avatarNicolas Kaiser <nikai@nikai.net>
Acked-by: default avatarBreno Leitao <leitao@linux.vnet.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e18434c4
......@@ -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);
......
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