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:
parent
e18434c457
commit
aa3bc6c68e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user