diff mbox

route: remove unsed variable in __mkroute_input

Message ID 1436413595-21154-1-git-send-email-yamato@redhat.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Masatake YAMATO July 9, 2015, 3:46 a.m. UTC
flags local variable in __mkroute_input is not used as a variable.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
---
 net/ipv4/route.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

David Miller July 10, 2015, 4:34 a.m. UTC | #1
From: Masatake YAMATO <yamato@redhat.com>
Date: Thu,  9 Jul 2015 12:46:35 +0900

> flags local variable in __mkroute_input is not used as a variable.
> 
> Signed-off-by: Masatake YAMATO <yamato@redhat.com>

Applied, thank you.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index d0362a2..04c83de 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -1546,7 +1546,6 @@  static int __mkroute_input(struct sk_buff *skb,
 	struct rtable *rth;
 	int err;
 	struct in_device *out_dev;
-	unsigned int flags = 0;
 	bool do_cache;
 	u32 itag = 0;
 
@@ -1610,7 +1609,7 @@  static int __mkroute_input(struct sk_buff *skb,
 	}
 
 	rth->rt_genid = rt_genid_ipv4(dev_net(rth->dst.dev));
-	rth->rt_flags = flags;
+	rth->rt_flags = 0;
 	rth->rt_type = res->type;
 	rth->rt_is_input = 1;
 	rth->rt_iif 	= 0;