diff options
author | Thomas Graf <tgraf@suug.ch> | 2014-08-25 23:09:11 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-08-26 11:09:20 (GMT) |
commit | c231aa4159b837b18c1b5ca8fb4bf17b8d467003 (patch) | |
tree | 5bfac0afada2576d68d65da2d48390a72bf3d9a0 /lib/xfrm | |
parent | 485cefd66562ddf8852aa20895062633f42ef1d0 (diff) | |
download | libnl-c231aa4159b837b18c1b5ca8fb4bf17b8d467003.zip libnl-c231aa4159b837b18c1b5ca8fb4bf17b8d467003.tar.gz libnl-c231aa4159b837b18c1b5ca8fb4bf17b8d467003.tar.bz2 |
xfrm: Remove unused variable sp_id and sa_id
Cc: Sruthi Yellamraju <ysruthi@gmail.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'lib/xfrm')
-rw-r--r-- | lib/xfrm/sa.c | 2 | ||||
-rw-r--r-- | lib/xfrm/sp.c | 2 |
2 files changed, 0 insertions, 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 |