projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e18434c
)
ehea: simplify conditional
author
Nicolas Kaiser
<nikai@nikai.net>
Thu, 7 Oct 2010 13:14:50 +0000
(13:14 +0000)
committer
David S. Miller
<davem@davemloft.net>
Sat, 9 Oct 2010 16:22:53 +0000
(09:22 -0700)
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>
drivers/net/ehea/ehea_main.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ehea/ehea_main.c
b/drivers/net/ehea/ehea_main.c
index 15401af30108bfc26ef4b307f2d6b85acb917055..6932578816d35b6a4fc407f1a36055ca64ba5ed7 100644
(file)
--- 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)
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);