Skip to content

Commit 2cee611

Browse files
sergey-senozhatskytorvalds
authored andcommitted
tools/vm/slabinfo: cosmetic globals cleanup
checkpatch.pl complains about globals being explicitly zeroed out: "ERROR: do not initialise globals to 0 or NULL". New globals, introduced in this patch set, have no explicit 0 initialization; clean up the old ones to make it less hairy. Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Cc: Christoph Lameter <cl@linux.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent a8ea0bf commit 2cee611

1 file changed

Lines changed: 27 additions & 27 deletions

File tree

‎tools/vm/slabinfo.c‎

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -53,43 +53,43 @@ struct aliasinfo {
5353
struct slabinfo *slab;
5454
} aliasinfo[MAX_ALIASES];
5555

56-
int slabs = 0;
57-
int actual_slabs = 0;
58-
int aliases = 0;
59-
int alias_targets = 0;
60-
int highest_node = 0;
56+
int slabs;
57+
int actual_slabs;
58+
int aliases;
59+
int alias_targets;
60+
int highest_node;
6161

6262
char buffer[4096];
6363

64-
int show_empty = 0;
65-
int show_report = 0;
66-
int show_alias = 0;
67-
int show_slab = 0;
64+
int show_empty;
65+
int show_report;
66+
int show_alias;
67+
int show_slab;
6868
int skip_zero = 1;
69-
int show_numa = 0;
70-
int show_track = 0;
71-
int show_first_alias = 0;
72-
int validate = 0;
73-
int shrink = 0;
74-
int show_inverted = 0;
75-
int show_single_ref = 0;
76-
int show_totals = 0;
77-
int sort_size = 0;
78-
int sort_active = 0;
79-
int set_debug = 0;
80-
int show_ops = 0;
81-
int show_activity = 0;
69+
int show_numa;
70+
int show_track;
71+
int show_first_alias;
72+
int validate;
73+
int shrink;
74+
int show_inverted;
75+
int show_single_ref;
76+
int show_totals;
77+
int sort_size;
78+
int sort_active;
79+
int set_debug;
80+
int show_ops;
81+
int show_activity;
8282
int output_lines = -1;
8383
int sort_loss;
8484
int extended_totals;
8585
int show_bytes;
8686

8787
/* Debug options */
88-
int sanity = 0;
89-
int redzone = 0;
90-
int poison = 0;
91-
int tracking = 0;
92-
int tracing = 0;
88+
int sanity;
89+
int redzone;
90+
int poison;
91+
int tracking;
92+
int tracing;
9393

9494
int page_size;
9595

0 commit comments

Comments
 (0)