[PATCH 3/6] xfrm: Remove unused function __assign_addr()

Thomas Graf tgraf at suug.ch
Mon Aug 25 16:09:09 PDT 2014


Signed-off-by: Thomas Graf <tgraf at suug.ch>
---
 lib/xfrm/sp.c | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/lib/xfrm/sp.c b/lib/xfrm/sp.c
index cf16297..e6ab195 100644
--- a/lib/xfrm/sp.c
+++ b/lib/xfrm/sp.c
@@ -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 = {
-- 
1.9.3




More information about the libnl mailing list