Skip to contentSkip to conversation

netdev: Clean up errors in netdevice.h

PATCH In review [email protected] 2 participants 2 messages Sep 27, 2023 – Oct 1, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netdev: Clean up errors in netdevice.h

Fix the following errors reported by checkpatch:

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

---
 include/linux/netdevice.h | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
include/linux/netdevice.h +2 -3
index 7e520c14eb8c..551372f42be6 100644
@@ -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));
 }
 
Signature · 1 line
2.17.1
reviewer
#1 lore raw
Quoted 6 lines · On Wed, Sep 27, 2023 at 11:37:30AM +0800, [email protected] 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)

Hi GuoHua Cheng,

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

pw-bot: rejected