Netdev Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] af_unix: cleancode: add space around '&'
@ 2021-05-04  9:17 Kemeng Shi
  0 siblings, 0 replies; only message in thread
From: Kemeng Shi @ 2021-05-04  9:17 UTC (permalink / raw)
  To: davem, kuba, christian.brauner, jamorris, jingxiangfeng,
	orcohen2006, gustavoars, netdev, linux-kernel

Add space around '&' when check MSG_OOB flags

Signed-off-by: Kemeng Shi <shikemeng@huawei.com>
---
 net/unix/af_unix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index 5a31307ceb76..c0808dd19e98 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -1635,7 +1635,7 @@ static int unix_dgram_sendmsg(struct socket *sock, struct msghdr *msg,
 		return err;

 	err = -EOPNOTSUPP;
-	if (msg->msg_flags&MSG_OOB)
+	if (msg->msg_flags & MSG_OOB)
 		goto out;

 	if (msg->msg_namelen) {
-- 
2.23.0

-- 
Best wishes
Kemeng Shi

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-04  9:17 [PATCH] af_unix: cleancode: add space around '&' Kemeng Shi

Netdev Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/netdev/0 netdev/git/0.git
	git clone --mirror https://lore.kernel.org/netdev/1 netdev/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 netdev netdev/ https://lore.kernel.org/netdev \
		netdev@vger.kernel.org
	public-inbox-index netdev

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.netdev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git