mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
netlink: add spaces around '&' in netlink_recv/sendmsg()
It's hard to read the code without spaces around '&', for better reading, add spaces around '&'. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2492c205d2
commit
4d11af5d00
1 changed files with 4 additions and 4 deletions
|
|
@ -1853,7 +1853,7 @@ static int netlink_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
|
||||||
struct scm_cookie scm;
|
struct scm_cookie scm;
|
||||||
u32 netlink_skb_flags = 0;
|
u32 netlink_skb_flags = 0;
|
||||||
|
|
||||||
if (msg->msg_flags&MSG_OOB)
|
if (msg->msg_flags & MSG_OOB)
|
||||||
return -EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
|
|
||||||
err = scm_send(sock, msg, &scm, true);
|
err = scm_send(sock, msg, &scm, true);
|
||||||
|
|
@ -1916,7 +1916,7 @@ static int netlink_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
|
||||||
refcount_inc(&skb->users);
|
refcount_inc(&skb->users);
|
||||||
netlink_broadcast(sk, skb, dst_portid, dst_group, GFP_KERNEL);
|
netlink_broadcast(sk, skb, dst_portid, dst_group, GFP_KERNEL);
|
||||||
}
|
}
|
||||||
err = netlink_unicast(sk, skb, dst_portid, msg->msg_flags&MSG_DONTWAIT);
|
err = netlink_unicast(sk, skb, dst_portid, msg->msg_flags & MSG_DONTWAIT);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
scm_destroy(&scm);
|
scm_destroy(&scm);
|
||||||
|
|
@ -1929,12 +1929,12 @@ static int netlink_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
|
||||||
struct scm_cookie scm;
|
struct scm_cookie scm;
|
||||||
struct sock *sk = sock->sk;
|
struct sock *sk = sock->sk;
|
||||||
struct netlink_sock *nlk = nlk_sk(sk);
|
struct netlink_sock *nlk = nlk_sk(sk);
|
||||||
int noblock = flags&MSG_DONTWAIT;
|
int noblock = flags & MSG_DONTWAIT;
|
||||||
size_t copied;
|
size_t copied;
|
||||||
struct sk_buff *skb, *data_skb;
|
struct sk_buff *skb, *data_skb;
|
||||||
int err, ret;
|
int err, ret;
|
||||||
|
|
||||||
if (flags&MSG_OOB)
|
if (flags & MSG_OOB)
|
||||||
return -EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
|
|
||||||
copied = 0;
|
copied = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue