aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Kaiser <nikai@nikai.net>2010-10-07 09:14:50 -0400
committerDavid S. Miller <davem@davemloft.net>2010-10-09 12:22:53 -0400
commitaa3bc6c68e3c1064969f5f2962be84491ffb69a0 (patch)
treef515ff4bc43d7acadaa1d227105db49b1c8dfd8c
parente18434c45765cfc4a74b5c61da9e9fbc6ddd3d5f (diff)
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>
-rw-r--r--drivers/net/ehea/ehea_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c
index 15401af30108..6932578816d3 100644
--- a/drivers/net/ehea/ehea_main.c
+++ b/drivers/net/ehea/ehea_main.c
@@ -1918,7 +1918,7 @@ static void ehea_promiscuous(struct net_device *dev, int enable)
1918 struct hcp_ehea_port_cb7 *cb7; 1918 struct hcp_ehea_port_cb7 *cb7;
1919 u64 hret; 1919 u64 hret;
1920 1920
1921 if ((enable && port->promisc) || (!enable && !port->promisc)) 1921 if (enable == port->promisc)
1922 return; 1922 return;
1923 1923
1924 cb7 = (void *)get_zeroed_page(GFP_ATOMIC); 1924 cb7 = (void *)get_zeroed_page(GFP_ATOMIC);