Commit db080529 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller

[NETLINK]: Remove unused groups member from struct netlink_skb_parms

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 43e943c3
...@@ -106,7 +106,6 @@ struct netlink_skb_parms ...@@ -106,7 +106,6 @@ struct netlink_skb_parms
{ {
struct ucred creds; /* Skb credentials */ struct ucred creds; /* Skb credentials */
__u32 pid; __u32 pid;
__u32 groups;
__u32 dst_pid; __u32 dst_pid;
__u32 dst_groups; __u32 dst_groups;
kernel_cap_t eff_cap; kernel_cap_t eff_cap;
......
...@@ -558,7 +558,6 @@ static void nl_fib_input(struct sock *sk, int len) ...@@ -558,7 +558,6 @@ static void nl_fib_input(struct sock *sk, int len)
nl_fib_lookup(frn, tb); nl_fib_lookup(frn, tb);
pid = nlh->nlmsg_pid; /*pid of sending process */ pid = nlh->nlmsg_pid; /*pid of sending process */
NETLINK_CB(skb).groups = 0; /* not in mcast group */
NETLINK_CB(skb).pid = 0; /* from kernel */ NETLINK_CB(skb).pid = 0; /* from kernel */
NETLINK_CB(skb).dst_pid = pid; NETLINK_CB(skb).dst_pid = pid;
NETLINK_CB(skb).dst_groups = 0; /* unicast */ NETLINK_CB(skb).dst_groups = 0; /* unicast */
......
...@@ -950,7 +950,6 @@ static int netlink_sendmsg(struct kiocb *kiocb, struct socket *sock, ...@@ -950,7 +950,6 @@ static int netlink_sendmsg(struct kiocb *kiocb, struct socket *sock,
goto out; goto out;
NETLINK_CB(skb).pid = nlk->pid; NETLINK_CB(skb).pid = nlk->pid;
NETLINK_CB(skb).groups = nlk->groups;
NETLINK_CB(skb).dst_pid = dst_pid; NETLINK_CB(skb).dst_pid = dst_pid;
NETLINK_CB(skb).dst_groups = dst_groups; NETLINK_CB(skb).dst_groups = dst_groups;
NETLINK_CB(skb).loginuid = audit_get_loginuid(current->audit_context); NETLINK_CB(skb).loginuid = audit_get_loginuid(current->audit_context);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment