Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);