Skip to content

Commit

Permalink
ipv4: Remove redundant assignment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lin Ming authored and David S. Miller committed Jul 23, 2012
1 parent 06b6a1c commit 8fe5cb8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/ipv4/fib_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8fe5cb8

Please sign in to comment.