netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] netdev: Clean up errors in netdevice.h
@ 2023-09-27  3:37 chenguohua
  2023-10-01 18:03 ` Simon Horman
  0 siblings, 1 reply; 2+ messages in thread
From: chenguohua @ 2023-09-27  3:37 UTC (permalink / raw)
  To: edumazet, kuba, pabeni; +Cc: netdev, linux-kernel

Fix the following errors reported by checkpatch:

ERROR: that open brace { should be on the previous line
ERROR: spaces required around that '=' (ctx:VxV)

Signed-off-by: GuoHua Cheng <chenguohua@jari.cn>
---
 include/linux/netdevice.h | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 7e520c14eb8c..551372f42be6 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -2306,7 +2306,7 @@ struct net_device {
 
 	struct list_head	link_watch_list;
 
-	enum { NETREG_UNINITIALIZED=0,
+	enum { NETREG_UNINITIALIZED = 0,
 	       NETREG_REGISTERED,	/* completed register_netdevice */
 	       NETREG_UNREGISTERING,	/* called unregister_netdevice */
 	       NETREG_UNREGISTERED,	/* completed unregister todo */
@@ -2501,8 +2501,7 @@ struct netdev_queue *netdev_get_tx_queue(const struct net_device *dev,
 }
 
 static inline struct netdev_queue *skb_get_tx_queue(const struct net_device *dev,
-						    const struct sk_buff *skb)
-{
+						    const struct sk_buff *skb) {
 	return netdev_get_tx_queue(dev, skb_get_queue_mapping(skb));
 }
 
-- 
2.17.1

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

* Re: [PATCH] netdev: Clean up errors in netdevice.h
  2023-09-27  3:37 [PATCH] netdev: Clean up errors in netdevice.h chenguohua
@ 2023-10-01 18:03 ` Simon Horman
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2023-10-01 18:03 UTC (permalink / raw)
  To: chenguohua; +Cc: edumazet, kuba, pabeni, netdev, linux-kernel

On Wed, Sep 27, 2023 at 11:37:30AM +0800, chenguohua@jari.cn wrote:
> Fix the following errors reported by checkpatch:
> 
> ERROR: that open brace { should be on the previous line
> ERROR: spaces required around that '=' (ctx:VxV)
> 
> Signed-off-by: GuoHua Cheng <chenguohua@jari.cn>

Hi GuoHua Cheng,

I'm sorry, but checkpatch cleanup patches for Networking code
are not accepted.

pw-bot: rejected

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

end of thread, other threads:[~2023-10-01 18:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-27  3:37 [PATCH] netdev: Clean up errors in netdevice.h chenguohua
2023-10-01 18:03 ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).