提交 aa3bc6c6 编写于 作者: N Nicolas Kaiser 提交者: David S. Miller

ehea: simplify conditional

Simplify: ((a && b) || (!a && !b)) => (a == b)
Signed-off-by: NNicolas Kaiser <nikai@nikai.net>
Acked-by: NBreno Leitao <leitao@linux.vnet.ibm.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e18434c4
...@@ -1918,7 +1918,7 @@ static void ehea_promiscuous(struct net_device *dev, int enable) ...@@ -1918,7 +1918,7 @@ static void ehea_promiscuous(struct net_device *dev, int enable)
struct hcp_ehea_port_cb7 *cb7; struct hcp_ehea_port_cb7 *cb7;
u64 hret; u64 hret;
if ((enable && port->promisc) || (!enable && !port->promisc)) if (enable == port->promisc)
return; return;
cb7 = (void *)get_zeroed_page(GFP_ATOMIC); cb7 = (void *)get_zeroed_page(GFP_ATOMIC);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册