]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
xfrm: Remove unused afinfo method init_dst
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 16 Sep 2015 01:03:52 +0000 (20:03 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Sep 2015 00:18:32 +0000 (17:18 -0700)
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
net/xfrm/xfrm_policy.c

index 312e3fee9ccfc098f70cd8ec6edb87881e1d1f99..fd176106909a8111177250d70e684fa67e6f3f02 100644 (file)
@@ -296,8 +296,6 @@ struct xfrm_policy_afinfo {
                                                  struct flowi *fl,
                                                  int reverse);
        int                     (*get_tos)(const struct flowi *fl);
-       void                    (*init_dst)(struct net *net,
-                                           struct xfrm_dst *dst);
        int                     (*init_path)(struct xfrm_dst *path,
                                             struct dst_entry *dst,
                                             int nfheader_len);
index 94af3d0657859e98c61d3f9b2babebcab722aec8..6b5d6e2b9a4965655da71f888425fa5c8e2f203d 100644 (file)
@@ -1583,8 +1583,6 @@ static inline struct xfrm_dst *xfrm_alloc_dst(struct net *net, int family)
 
                memset(dst + 1, 0, sizeof(*xdst) - sizeof(*dst));
                xdst->flo.ops = &xfrm_bundle_fc_ops;
-               if (afinfo->init_dst)
-                       afinfo->init_dst(net, xdst);
        } else
                xdst = ERR_PTR(-ENOBUFS);