Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1424048 > unrolled thread

[PATCH] net: do not initialise statics to 0

Started byWei Tang <tangwei@cmss.chinamobile.com>
First post2016-06-16 15:30 +0200
Last post2016-06-17 02:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] net: do not initialise statics to 0 Wei Tang <tangwei@cmss.chinamobile.com> - 2016-06-16 15:30 +0200
    Re: [PATCH] net: do not initialise statics to 0 David Miller <davem@davemloft.net> - 2016-06-17 02:50 +0200

#1424048 — [PATCH] net: do not initialise statics to 0

FromWei Tang <tangwei@cmss.chinamobile.com>
Date2016-06-16 15:30 +0200
Subject[PATCH] net: do not initialise statics to 0
Message-ID<rKFwS-sD-15@gated-at.bofh.it>
This patch fixes the checkpatch.pl error to dev.c:

ERROR: do not initialise statics to 0

Signed-off-by: Wei Tang <tangwei@cmss.chinamobile.com>
---
 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

[toc] | [next] | [standalone]


#1424567

FromDavid Miller <davem@davemloft.net>
Date2016-06-17 02:50 +0200
Message-ID<rKQ8V-7Ix-13@gated-at.bofh.it>
In reply to#1424048
From: Wei Tang <tangwei@cmss.chinamobile.com>
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 <tangwei@cmss.chinamobile.com>

Applied.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web