mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 12:04:08 +00:00
xfrm: Remove unused afinfo method init_dst
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7a7735044e
commit
a6568b2425
2 changed files with 0 additions and 4 deletions
|
@ -296,8 +296,6 @@ struct xfrm_policy_afinfo {
|
||||||
struct flowi *fl,
|
struct flowi *fl,
|
||||||
int reverse);
|
int reverse);
|
||||||
int (*get_tos)(const struct flowi *fl);
|
int (*get_tos)(const struct flowi *fl);
|
||||||
void (*init_dst)(struct net *net,
|
|
||||||
struct xfrm_dst *dst);
|
|
||||||
int (*init_path)(struct xfrm_dst *path,
|
int (*init_path)(struct xfrm_dst *path,
|
||||||
struct dst_entry *dst,
|
struct dst_entry *dst,
|
||||||
int nfheader_len);
|
int nfheader_len);
|
||||||
|
|
|
@ -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));
|
memset(dst + 1, 0, sizeof(*xdst) - sizeof(*dst));
|
||||||
xdst->flo.ops = &xfrm_bundle_fc_ops;
|
xdst->flo.ops = &xfrm_bundle_fc_ops;
|
||||||
if (afinfo->init_dst)
|
|
||||||
afinfo->init_dst(net, xdst);
|
|
||||||
} else
|
} else
|
||||||
xdst = ERR_PTR(-ENOBUFS);
|
xdst = ERR_PTR(-ENOBUFS);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue