aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/devinet.c
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2012-09-06 20:45:29 -0400
committerDavid S. Miller <davem@davemloft.net>2012-09-07 14:44:08 -0400
commit4ccfe6d4109252dfadcd6885f33ed600ee03dbf8 (patch)
tree502f7189a3619ecb464eb523bc877c2329dc7b56 /net/ipv4/devinet.c
parentdbe9a4173ea53b72b2c35d19f676a85b69f1c9fe (diff)
ipv4/route: arg delay is useless in rt_cache_flush()
Since route cache deletion (89aef8921bfbac22f), delay is no more used. Remove it. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/devinet.c')
-rw-r--r--net/ipv4/devinet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c
index adf273f8ad2e..f14eff506743 100644
--- a/net/ipv4/devinet.c
+++ b/net/ipv4/devinet.c
@@ -1500,7 +1500,7 @@ static int devinet_conf_proc(ctl_table *ctl, int write,
1500 if (i == IPV4_DEVCONF_ACCEPT_LOCAL - 1 || 1500 if (i == IPV4_DEVCONF_ACCEPT_LOCAL - 1 ||
1501 i == IPV4_DEVCONF_ROUTE_LOCALNET - 1) 1501 i == IPV4_DEVCONF_ROUTE_LOCALNET - 1)
1502 if ((new_value == 0) && (old_value != 0)) 1502 if ((new_value == 0) && (old_value != 0))
1503 rt_cache_flush(net, 0); 1503 rt_cache_flush(net);
1504 } 1504 }
1505 1505
1506 return ret; 1506 return ret;
@@ -1534,7 +1534,7 @@ static int devinet_sysctl_forward(ctl_table *ctl, int write,
1534 dev_disable_lro(idev->dev); 1534 dev_disable_lro(idev->dev);
1535 } 1535 }
1536 rtnl_unlock(); 1536 rtnl_unlock();
1537 rt_cache_flush(net, 0); 1537 rt_cache_flush(net);
1538 } 1538 }
1539 } 1539 }
1540 1540
@@ -1551,7 +1551,7 @@ static int ipv4_doint_and_flush(ctl_table *ctl, int write,
1551 struct net *net = ctl->extra2; 1551 struct net *net = ctl->extra2;
1552 1552
1553 if (write && *valp != val) 1553 if (write && *valp != val)
1554 rt_cache_flush(net, 0); 1554 rt_cache_flush(net);
1555 1555
1556 return ret; 1556 return ret;
1557} 1557}