* [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
* Re: [PATCH net-next] net: arp: Fix the coding style issue regarding spaces in arp_state_to_flags()
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
0 siblings, 0 replies; 2+ messages in thread
From: Jakub Kicinski @ 2026-05-15 0:57 UTC (permalink / raw)
To: qiu.yutan
Cc: davem, dsahern, edumazet, pabeni, horms, netdev, linux-kernel,
yang.chuan1, huang.jian, zhou.shizhen, zhang.dongyu1, ye.guojin,
yang.wei20, zhang.lin16, li.hao40
On Tue, 12 May 2026 14:39:31 +0800 (CST) qiu.yutan@zte.com.cn wrote:
> According to the kernel's coding style, the binary operator & should
> have a space on each side.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Quoting documentation:
Clean-up patches
~~~~~~~~~~~~~~~~
Netdev discourages patches which perform simple clean-ups, which are not in
the context of other work. For example:
* Addressing ``checkpatch.pl``, and other trivial coding style warnings
* Addressing :ref:`Local variable ordering<rcs>` issues
* Conversions to device-managed APIs (``devm_`` helpers)
This is because it is felt that the churn that such changes produce comes
at a greater cost than the value of such clean-ups.
Conversely, spelling and grammar fixes are not discouraged.
See: https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#clean-up-patches
--
pw-bot: reject
^ permalink raw reply [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.