[NET] NETLINK: Fix whitespace errors.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e1a95265b4
commit
746fac4dcd
|
@ -605,8 +605,8 @@ static int netlink_bind(struct socket *sock, struct sockaddr *addr, int addr_len
|
||||||
|
|
||||||
netlink_table_grab();
|
netlink_table_grab();
|
||||||
netlink_update_subscriptions(sk, nlk->subscriptions +
|
netlink_update_subscriptions(sk, nlk->subscriptions +
|
||||||
hweight32(nladdr->nl_groups) -
|
hweight32(nladdr->nl_groups) -
|
||||||
hweight32(nlk->groups[0]));
|
hweight32(nlk->groups[0]));
|
||||||
nlk->groups[0] = (nlk->groups[0] & ~0xffffffffUL) | nladdr->nl_groups;
|
nlk->groups[0] = (nlk->groups[0] & ~0xffffffffUL) | nladdr->nl_groups;
|
||||||
netlink_update_listeners(sk);
|
netlink_update_listeners(sk);
|
||||||
netlink_table_ungrab();
|
netlink_table_ungrab();
|
||||||
|
@ -999,7 +999,7 @@ void netlink_set_err(struct sock *ssk, u32 pid, u32 group, int code)
|
||||||
}
|
}
|
||||||
|
|
||||||
static int netlink_setsockopt(struct socket *sock, int level, int optname,
|
static int netlink_setsockopt(struct socket *sock, int level, int optname,
|
||||||
char __user *optval, int optlen)
|
char __user *optval, int optlen)
|
||||||
{
|
{
|
||||||
struct sock *sk = sock->sk;
|
struct sock *sk = sock->sk;
|
||||||
struct netlink_sock *nlk = nlk_sk(sk);
|
struct netlink_sock *nlk = nlk_sk(sk);
|
||||||
|
@ -1054,7 +1054,7 @@ static int netlink_setsockopt(struct socket *sock, int level, int optname,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int netlink_getsockopt(struct socket *sock, int level, int optname,
|
static int netlink_getsockopt(struct socket *sock, int level, int optname,
|
||||||
char __user *optval, int __user *optlen)
|
char __user *optval, int __user *optlen)
|
||||||
{
|
{
|
||||||
struct sock *sk = sock->sk;
|
struct sock *sk = sock->sk;
|
||||||
struct netlink_sock *nlk = nlk_sk(sk);
|
struct netlink_sock *nlk = nlk_sk(sk);
|
||||||
|
@ -1264,8 +1264,8 @@ static void netlink_data_ready(struct sock *sk, int len)
|
||||||
|
|
||||||
struct sock *
|
struct sock *
|
||||||
netlink_kernel_create(int unit, unsigned int groups,
|
netlink_kernel_create(int unit, unsigned int groups,
|
||||||
void (*input)(struct sock *sk, int len),
|
void (*input)(struct sock *sk, int len),
|
||||||
struct module *module)
|
struct module *module)
|
||||||
{
|
{
|
||||||
struct socket *sock;
|
struct socket *sock;
|
||||||
struct sock *sk;
|
struct sock *sk;
|
||||||
|
|
|
@ -310,7 +310,7 @@ static int genl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh,
|
||||||
if (nlh->nlmsg_type < NLMSG_MIN_TYPE)
|
if (nlh->nlmsg_type < NLMSG_MIN_TYPE)
|
||||||
goto ignore;
|
goto ignore;
|
||||||
|
|
||||||
family = genl_family_find_byid(nlh->nlmsg_type);
|
family = genl_family_find_byid(nlh->nlmsg_type);
|
||||||
if (family == NULL) {
|
if (family == NULL) {
|
||||||
err = -ENOENT;
|
err = -ENOENT;
|
||||||
goto errout;
|
goto errout;
|
||||||
|
|
Loading…
Reference in New Issue