[PATCH] net: do not initialise statics to 0

Subsystems: networking [general], the rest

STALE3703d

2 messages, 2 authors, 2016-06-17 · open the first message on its own page

[PATCH] net: do not initialise statics to 0

From: Wei Tang <hidden>
Date: 2016-06-16 13:28:01

This patch fixes the checkpatch.pl error to dev.c:

ERROR: do not initialise statics to 0

Signed-off-by: Wei Tang <redacted>
---
 net/core/dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/core/dev.c b/net/core/dev.c
index 904ff43..7a3fe58 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -2420,7 +2420,7 @@ EXPORT_SYMBOL(__skb_tx_hash);
 
 static void skb_warn_bad_offload(const struct sk_buff *skb)
 {
-	static const netdev_features_t null_features = 0;
+	static const netdev_features_t null_features;
 	struct net_device *dev = skb->dev;
 	const char *name = "";
 
-- 
1.9.1

Re: [PATCH] net: do not initialise statics to 0

From: David Miller <davem@davemloft.net>
Date: 2016-06-17 00:41:38

From: Wei Tang <redacted>
Date: Thu, 16 Jun 2016 21:17:49 +0800
This patch fixes the checkpatch.pl error to dev.c:

ERROR: do not initialise statics to 0

Signed-off-by: Wei Tang <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help