ipv4: Remove redundant assignment
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- net/ipv4/fib_frontend.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
net/ipv4/fib_frontend.c +0 -1
@@ -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);
From: Lin Ming <[email protected]>
Date: Mon, 23 Jul 2012 22:11:21 +0800
Quoted 4 lines
It is redundant to set
no_addrandaccept_localto 0 and then set them with other values just after that.Signed-off-by Lin Ming <[email protected]>
Applied, thanks.