summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorMasatake YAMATO <yamato@redhat.com>2015-07-09 12:46:35 +0900
committerDavid S. Miller <davem@davemloft.net>2015-07-09 21:34:34 -0700
commitcb1c61680d29a054b91a23c7a504cea8a72bdcff (patch)
tree7f2fc519ae88fdc4525271fda2e457f974aa3a09 /net/ipv4
parent35a256fee52c7c207796302681fa95189c85b408 (diff)
downloadop-kernel-dev-cb1c61680d29a054b91a23c7a504cea8a72bdcff.zip
op-kernel-dev-cb1c61680d29a054b91a23c7a504cea8a72bdcff.tar.gz
route: remove unsed variable in __mkroute_input
flags local variable in __mkroute_input is not used as a variable. Signed-off-by: Masatake YAMATO <yamato@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/route.c3
1 files changed, 1 insertions, 2 deletions
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;
OpenPOWER on IntegriCloud