Skip to contentSkip to conversation

Staging: lustre/lustre/ptlrpc: service.c: Fixed issue with global integer being initialized to 0

PATCH New Daniel Machon 1 participant 1 message Aug 8, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Staging: lustre/lustre/ptlrpc: service.c: Fixed issue with global integer being initialized to 0

Fixed global integer initialization issue.
Global variables should not be explicitly initialized to 0 or NULL.

---
 drivers/staging/lustre/lustre/ptlrpc/service.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/ptlrpc/service.c +1 -1
index 9117f1c..11e1ada 100644
@@ -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);
Signature · 1 line
2.1.4