* [PATCH 2/2] Staging: lustre/lustre/ptlrpc: service.c: Fixed issue with global integer being initialized to 0
@ 2015-08-08 18:43 Daniel Machon
0 siblings, 0 replies; only message in thread
From: Daniel Machon @ 2015-08-08 18:43 UTC (permalink / raw)
To: gregkh; +Cc: devel, linux-kernel
Fixed global integer initialization issue.
Global variables should not be explicitly initialized to 0 or NULL.
Signed-off-by: Daniel Machon <dmachon.dev@gmail.com>
---
drivers/staging/lustre/lustre/ptlrpc/service.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/lustre/lustre/ptlrpc/service.c b/drivers/staging/lustre/lustre/ptlrpc/service.c
index 9117f1c..11e1ada 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/service.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/service.c
@@ -43,7 +43,7 @@
#include "ptlrpc_internal.h"
/* The following are visible and mutable through /sys/module/ptlrpc */
-int test_req_buffer_pressure = 0;
+int test_req_buffer_pressure;
module_param(test_req_buffer_pressure, int, 0444);
MODULE_PARM_DESC(test_req_buffer_pressure, "set non-zero to put pressure on request buffer pools");
module_param(at_min, int, 0644);
--
2.1.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-08-08 18:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-08 18:43 [PATCH 2/2] Staging: lustre/lustre/ptlrpc: service.c: Fixed issue with global integer being initialized to 0 Daniel Machon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox