lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1466083069-9603-1-git-send-email-tangwei@cmss.chinamobile.com>
Date:	Thu, 16 Jun 2016 21:17:49 +0800
From:	Wei Tang <tangwei@...s.chinamobile.com>
To:	davem@...emloft.net, edumazet@...gle.com, aduyck@...antis.com,
	jiri@...lanox.com, jarod@...hat.com, nikolay@...ulusnetworks.com
Cc:	ast@...mgrid.com, tom@...bertland.com, daniel@...earbox.net,
	ja@....bg, netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
	Wei Tang <tangwei@...s.chinamobile.com>
Subject: [PATCH] net: do not initialise statics to 0

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

ERROR: do not initialise statics to 0

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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ