Skip to content

Commit

Permalink
ehea: simplify conditional
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nicolas Kaiser authored and David S. Miller committed Oct 9, 2010
1 parent e18434c commit aa3bc6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ehea/ehea_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aa3bc6c

Please sign in to comment.