소스 검색

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>
Nicolas Kaiser 15 년 전
부모
커밋
aa3bc6c68e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/net/ehea/ehea_main.c

+ 1 - 1
drivers/net/ehea/ehea_main.c

@@ -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);