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>
This commit is contained in:
parent
485cefd665
commit
c231aa4159
2 changed files with 0 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue