]> granicus.if.org Git - libnl/commitdiff
route: Remove dead link_cache variable
authorThomas Graf <tgraf@redhat.com>
Tue, 13 Sep 2011 21:16:09 +0000 (23:16 +0200)
committerThomas Graf <tgraf@redhat.com>
Tue, 13 Sep 2011 21:16:09 +0000 (23:16 +0200)
lib/route/route_obj.c

index 3d208b441b0b967c653b6c3c8ac75a9112d58845..834cb91ae4a7f9fab8359bf7da2d9866e9bbf953 100644 (file)
@@ -125,12 +125,9 @@ static int route_clone(struct nl_object *_dst, struct nl_object *_src)
 static void route_dump_line(struct nl_object *a, struct nl_dump_params *p)
 {
        struct rtnl_route *r = (struct rtnl_route *) a;
-       struct nl_cache *link_cache;
        int cache = 0, flags;
        char buf[64];
 
-       link_cache = nl_cache_mngt_require("route/link");
-
        if (r->rt_flags & RTM_F_CLONED)
                cache = 1;