diff options
author | Lin Ming <mlin@ss.pku.edu.cn> | 2012-07-23 00:11:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-23 16:00:54 -0400 |
commit | 8fe5cb873b7ef7f4fa49477455e8f2e3d555230e (patch) | |
tree | fbe339035f8a8ef6af443a93ec047455cb1ffe83 /net/ipv4/fib_frontend.c | |
parent | 06b6a1cf6e776426766298d055bb3991957d90a7 (diff) |
ipv4: Remove redundant assignment
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>
Diffstat (limited to 'net/ipv4/fib_frontend.c')
-rw-r--r-- | net/ipv4/fib_frontend.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index f277cf0e6321..8732cc7920ed 100644 --- 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, | |||
258 | fl4.flowi4_tos = tos; | 258 | fl4.flowi4_tos = tos; |
259 | fl4.flowi4_scope = RT_SCOPE_UNIVERSE; | 259 | fl4.flowi4_scope = RT_SCOPE_UNIVERSE; |
260 | 260 | ||
261 | no_addr = accept_local = 0; | ||
262 | no_addr = idev->ifa_list == NULL; | 261 | no_addr = idev->ifa_list == NULL; |
263 | 262 | ||
264 | accept_local = IN_DEV_ACCEPT_LOCAL(idev); | 263 | accept_local = IN_DEV_ACCEPT_LOCAL(idev); |