summaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-03-23 01:42:37 +0100
committerDavid S. Miller <davem@davemloft.net>2008-03-23 01:42:37 +0100
commitce259990785595420ace616faece09255bad1163 (patch)
treef57699a3adb3c9087d272029080812e53f2a39ee /net/ipv4/route.c
parent[NET]: NPROTO is redundant; it's equal to AF_MAX/PF_MAX. (diff)
downloadlinux-ce259990785595420ace616faece09255bad1163.tar.xz
linux-ce259990785595420ace616faece09255bad1163.zip
[IPV4]: sk parameter is unused in ipv4_dst_blackhole.
Just remove it. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/ipv4/route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 1051326c36b2..9ba3413a9909 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -2520,7 +2520,7 @@ static struct dst_ops ipv4_dst_blackhole_ops = {
};
-static int ipv4_dst_blackhole(struct rtable **rp, struct flowi *flp, struct sock *sk)
+static int ipv4_dst_blackhole(struct rtable **rp, struct flowi *flp)
{
struct rtable *ort = *rp;
struct rtable *rt = (struct rtable *)
@@ -2580,7 +2580,7 @@ int ip_route_output_flow(struct net *net, struct rtable **rp, struct flowi *flp,
err = __xfrm_lookup((struct dst_entry **)rp, flp, sk,
flags ? XFRM_LOOKUP_WAIT : 0);
if (err == -EREMOTE)
- err = ipv4_dst_blackhole(rp, flp, sk);
+ err = ipv4_dst_blackhole(rp, flp);
return err;
}