projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06b6a1c
)
ipv4: Remove redundant assignment
author
Lin Ming
<mlin@ss.pku.edu.cn>
Mon, 23 Jul 2012 04:11:21 +0000
(
04:11
+0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 23 Jul 2012 20:00:54 +0000
(13:00 -0700)
It is redundant to set no_addr and accept_local to 0 and then set them
with other values just after that.
Signed-off-by: Lin Ming <mlin@ss.pku.edu.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_frontend.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/fib_frontend.c
b/net/ipv4/fib_frontend.c
index f277cf0e63215b68f6767306d955285509d30c16..8732cc7920ed29d9f60a78b80d875628d06cffb2 100644
(file)
--- a/
net/ipv4/fib_frontend.c
+++ b/
net/ipv4/fib_frontend.c
@@
-258,7
+258,6
@@
static int __fib_validate_source(struct sk_buff *skb, __be32 src, __be32 dst,
fl4.flowi4_tos = tos;
fl4.flowi4_scope = RT_SCOPE_UNIVERSE;
- no_addr = accept_local = 0;
no_addr = idev->ifa_list == NULL;
accept_local = IN_DEV_ACCEPT_LOCAL(idev);