]> granicus.if.org Git - libnl/commitdiff
xfrm: Remove unused function __assign_addr()
authorThomas Graf <tgraf@suug.ch>
Mon, 25 Aug 2014 23:09:09 +0000 (01:09 +0200)
committerThomas Haller <thaller@redhat.com>
Tue, 26 Aug 2014 11:09:20 +0000 (13:09 +0200)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
lib/xfrm/sp.c

index cf1629757d26f6d256d34db4fb89ad1b46087fda..e6ab195677c57f41478c29c1b2437eb26e2359ec 100644 (file)
@@ -1296,21 +1296,6 @@ int xfrmnl_sp_set_mark (struct xfrmnl_sp* sp, unsigned int value, unsigned int m
        return 0;
 }
 
-static inline int __assign_addr(struct xfrmnl_sp* sp, struct nl_addr **pos,
-                                struct nl_addr *new, int flag)
-{
-       if (*pos)
-               nl_addr_put(*pos);
-
-       nl_addr_get(new);
-       *pos = new;
-
-       sp->ce_mask |= flag;
-
-       return 0;
-}
-
-
 /** @} */
 
 static struct nl_object_ops xfrm_sp_obj_ops = {