All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] net: arp: Fix the coding style issue regarding spaces in  arp_state_to_flags()
@ 2026-05-12  6:39 qiu.yutan
  2026-05-15  0:57 ` Jakub Kicinski
  0 siblings, 1 reply; 2+ messages in thread
From: qiu.yutan @ 2026-05-12  6:39 UTC (permalink / raw)
  To: davem, kuba
  Cc: dsahern, edumazet, pabeni, horms, netdev, linux-kernel,
	yang.chuan1, huang.jian, zhou.shizhen, zhang.dongyu1, ye.guojin,
	yang.wei20, zhang.lin16, li.hao40

From: Qiu Yutan <qiu.yutan@zte.com.cn>

According to the kernel's coding style, the binary operator & should
have a space on each side.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Qiu Yutan <qiu.yutan@zte.com.cn>
---
 net/ipv4/arp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c
index 601b98185cf5..18174459a9a9 100644
--- a/net/ipv4/arp.c
+++ b/net/ipv4/arp.c
@@ -1155,9 +1155,9 @@ static int arp_req_set(struct net *net, struct arpreq *r)

 static unsigned int arp_state_to_flags(struct neighbour *neigh)
 {
-	if (neigh->nud_state&NUD_PERMANENT)
+	if (neigh->nud_state & NUD_PERMANENT)
 		return ATF_PERM | ATF_COM;
-	else if (neigh->nud_state&NUD_VALID)
+	else if (neigh->nud_state & NUD_VALID)
 		return ATF_COM;
 	else
 		return 0;
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-05-15  0:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-12  6:39 [PATCH net-next] net: arp: Fix the coding style issue regarding spaces in arp_state_to_flags() qiu.yutan
2026-05-15  0:57 ` Jakub Kicinski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.