[PATCH net-next] net: arp: Fix the coding style issue regarding spaces in arp_state_to_flags()

From: qiu.yutan

Date: Tue May 12 2026 - 02:42:16 EST


From: Qiu Yutan <qiu.yutan@xxxxxxxxxx>

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@xxxxxxxxxx>
---
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