Skip to contentSkip to conversation

selftests: sched: Remove initialization to 0 for a static variable

PATCH New Atul Kumar Pant 1 participant 1 message Nov 6, 2023 Kselftest

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests: sched: Remove initialization to 0 for a static variable

Fixes following checkpatch.pl issue:
ERROR: do not initialise statics to 0

---
 tools/testing/selftests/sched/cs_prctl_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/sched/cs_prctl_test.c +1 -1
index 3e1619b6bf2d..7ba057154343 100644
@@ -72,7 +72,7 @@ struct child_args {
 
 static struct child_args procs[MAX_PROCESSES];
 static int num_processes = 2;
-static int need_cleanup = 0;
+static int need_cleanup;
 
 static int _prctl(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4,
 		  unsigned long arg5)
Signature · 1 line
2.25.1