ehea: simplify conditional
Subsystems (2)
PATCH 1/1 ehea: simplify conditional
Simplify: ((a && b) || (!a && !b)) => (a == b)
Signed-off-by Nicolas Kaiser <[email protected]>
--- drivers/net/ehea/ehea_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/ehea/ehea_main.c +1 -1
@@ -1914,7 +1914,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 );
Signature · 1 line
1.7.2.2
Quoted 3 lines · Nicolas Kaiser
Simplify: ((a&& b) || (!a&& !b)) => (a == b)
Signed-off-by Nicolas Kaiser<[email protected]>
Acked-by Breno Leitao <[email protected]>
From: Breno Leitao <[email protected]>
Date: Thu, 07 Oct 2010 20:49:05 -0300
Quoted 5 lines · Nicolas Kaiser
Quoted 3 lines
Simplify: ((a&& b) || (!a&& !b)) => (a == b)
Signed-off-by Nicolas Kaiser<[email protected]>Acked-by Breno Leitao <[email protected]>
Applied.