diff options
-rw-r--r-- | Documentation/perf_counter/builtin-top.c | 2 | ||||
-rw-r--r-- | Documentation/perf_counter/util/parse-options.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/perf_counter/builtin-top.c b/Documentation/perf_counter/builtin-top.c index 16a618446d3f..7c907e25d82b 100644 --- a/Documentation/perf_counter/builtin-top.c +++ b/Documentation/perf_counter/builtin-top.c | |||
@@ -175,7 +175,7 @@ static void rb_insert_active_sym(struct rb_root *tree, struct sym_entry *se) | |||
175 | 175 | ||
176 | static void print_sym_table(void) | 176 | static void print_sym_table(void) |
177 | { | 177 | { |
178 | int printed, j; | 178 | int printed = 0, j; |
179 | int counter; | 179 | int counter; |
180 | float events_per_sec = events/delay_secs; | 180 | float events_per_sec = events/delay_secs; |
181 | float kevents_per_sec = (events-userspace_events)/delay_secs; | 181 | float kevents_per_sec = (events-userspace_events)/delay_secs; |
diff --git a/Documentation/perf_counter/util/parse-options.c b/Documentation/perf_counter/util/parse-options.c index b80abd9a99bc..551b6bc34e79 100644 --- a/Documentation/perf_counter/util/parse-options.c +++ b/Documentation/perf_counter/util/parse-options.c | |||
@@ -33,7 +33,7 @@ static int get_arg(struct parse_opt_ctx_t *p, const struct option *opt, | |||
33 | static int get_value(struct parse_opt_ctx_t *p, | 33 | static int get_value(struct parse_opt_ctx_t *p, |
34 | const struct option *opt, int flags) | 34 | const struct option *opt, int flags) |
35 | { | 35 | { |
36 | const char *s, *arg; | 36 | const char *s, *arg = NULL; |
37 | const int unset = flags & OPT_UNSET; | 37 | const int unset = flags & OPT_UNSET; |
38 | 38 | ||
39 | if (unset && p->opt) | 39 | if (unset && p->opt) |