* [PATCH] net: do not initialise statics to 0
@ 2016-06-16 13:17 Wei Tang
2016-06-17 0:41 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Wei Tang @ 2016-06-16 13:17 UTC (permalink / raw)
To: davem, edumazet, aduyck, jiri, jarod, nikolay
Cc: ast, tom, daniel, ja, netdev, linux-kernel, Wei Tang
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: do not initialise statics to 0
2016-06-16 13:17 [PATCH] net: do not initialise statics to 0 Wei Tang
@ 2016-06-17 0:41 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-06-17 0:41 UTC (permalink / raw)
To: tangwei
Cc: edumazet, aduyck, jiri, jarod, nikolay, ast, tom, daniel, ja,
netdev, linux-kernel
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-17 0:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-16 13:17 [PATCH] net: do not initialise statics to 0 Wei Tang
2016-06-17 0:41 ` David Miller
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).