[PATCH 5/6] xfrm: Remove unused variable sp_id and sa_id
Thomas Graf
tgraf at suug.ch
Mon Aug 25 16:09:11 PDT 2014
Cc: Sruthi Yellamraju <ysruthi at gmail.com>
Signed-off-by: Thomas Graf <tgraf at suug.ch>
---
lib/xfrm/sa.c | 2 --
lib/xfrm/sp.c | 2 --
2 files changed, 4 deletions(-)
diff --git a/lib/xfrm/sa.c b/lib/xfrm/sa.c
index 07633e5..9b5ea9d 100644
--- a/lib/xfrm/sa.c
+++ b/lib/xfrm/sa.c
@@ -655,7 +655,6 @@ int xfrmnl_sa_parse(struct nlmsghdr *n, struct xfrmnl_sa **result)
struct nlattr *tb[XFRMA_MAX + 1];
struct xfrm_usersa_info* sa_info;
struct xfrm_user_expire* ue;
- struct xfrm_usersa_id* sa_id;
int len, err;
struct nl_addr* addr;
@@ -675,7 +674,6 @@ int xfrmnl_sa_parse(struct nlmsghdr *n, struct xfrmnl_sa **result)
}
else if (n->nlmsg_type == XFRM_MSG_DELSA)
{
- sa_id = nlmsg_data(n);
sa_info = (struct xfrm_usersa_info*)(nlmsg_data(n) + sizeof (struct xfrm_usersa_id) + NLA_HDRLEN);
}
else
diff --git a/lib/xfrm/sp.c b/lib/xfrm/sp.c
index e6ab195..76cdc61 100644
--- a/lib/xfrm/sp.c
+++ b/lib/xfrm/sp.c
@@ -518,7 +518,6 @@ int xfrmnl_sp_parse(struct nlmsghdr *n, struct xfrmnl_sp **result)
struct xfrmnl_sp *sp;
struct nlattr *tb[XFRMA_MAX + 1];
struct xfrm_userpolicy_info *sp_info;
- struct xfrm_userpolicy_id *sp_id;
int len, err;
struct nl_addr* addr;
@@ -531,7 +530,6 @@ int xfrmnl_sp_parse(struct nlmsghdr *n, struct xfrmnl_sp **result)
sp->ce_msgtype = n->nlmsg_type;
if (n->nlmsg_type == XFRM_MSG_DELPOLICY)
{
- sp_id = nlmsg_data(n);
sp_info = (struct xfrm_userpolicy_info*)(nlmsg_data(n) + sizeof (struct xfrm_userpolicy_id) + NLA_HDRLEN);
}
else
--
1.9.3
More information about the libnl
mailing list