]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/ehea/ehea_main.c
ehea: simplify conditional
[net-next-2.6.git] / drivers / net / ehea / ehea_main.c
index 15401af30108bfc26ef4b307f2d6b85acb917055..6932578816d35b6a4fc407f1a36055ca64ba5ed7 100644 (file)
@@ -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);