* [PATCH] staging: lustre: lustre: ptlrpc: Donot initialise null
@ 2014-08-14 7:20 Hema Prathaban
0 siblings, 0 replies; only message in thread
From: Hema Prathaban @ 2014-08-14 7:20 UTC (permalink / raw)
To: gregkh; +Cc: devel, linux-kernel, andreas.dilger, oleg.drokin
This patch fixes the following error using checkpatch.pl
Error: Do not initialise statics to 0 or NULL
Signed-off-by: Hema Prathaban <hemaklnce@gmail.com>
---
drivers/staging/lustre/lustre/ptlrpc/connection.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/lustre/lustre/ptlrpc/connection.c b/drivers/staging/lustre/lustre/ptlrpc/connection.c
index adff1ab..62154c4 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/connection.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/connection.c
@@ -41,7 +41,7 @@
#include "ptlrpc_internal.h"
-static struct cfs_hash *conn_hash = NULL;
+static struct cfs_hash *conn_hash;
static cfs_hash_ops_t conn_hash_ops;
struct ptlrpc_connection *
--
1.9.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-14 7:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-14 7:20 [PATCH] staging: lustre: lustre: ptlrpc: Donot initialise null Hema Prathaban
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®