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

index 07633e534a3976545cf3e188ada38a9a9a14515a..9b5ea9d242e2ae062c8c6c51319b1bd92fcc2685 100644 (file)
@@ -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
index e6ab195677c57f41478c29c1b2437eb26e2359ec..76cdc610de9b2e134cffd731b3b3d172815f45e6 100644 (file)
@@ -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