diff mbox

[21/28] remove unused 'verbose' option

Message ID 1308256197-29155-21-git-send-email-daniel.lezcano@linaro.org
State Accepted
Headers show

Commit Message

Daniel Lezcano June 16, 2011, 8:29 p.m. UTC
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
 clocks.c     |    8 +++-----
 powerdebug.c |    1 -
 powerdebug.h |    4 ++--
 3 files changed, 5 insertions(+), 8 deletions(-)
diff mbox

Patch

diff --git a/clocks.c b/clocks.c
index 9d8108c..e843b9e 100644
--- a/clocks.c
+++ b/clocks.c
@@ -283,7 +283,7 @@  static void destroy_clocks_info(void)
 }
 
 
-int read_and_print_clock_info(int verbose, int hrow, int selected)
+int read_and_print_clock_info(int hrow, int selected)
 {
 	print_one_clock(0, "Reading Clock Tree ...", 1, 1);
 
@@ -302,7 +302,7 @@  int read_and_print_clock_info(int verbose, int hrow, int selected)
 	else
 		selected = 0;
 
-	print_clock_info(verbose, hrow, selected);
+	print_clock_info(hrow, selected);
 	hrow = (hrow < old_clock_line_no) ? hrow : old_clock_line_no - 1;
 
 	return hrow;
@@ -380,12 +380,10 @@  static void add_clock_details_recur(struct clock_info *clock,
 	strcpy(clock_lines[clock_line_no], "");
 }
 
-void print_clock_info(int verbose, int hrow, int selected)
+void print_clock_info(int hrow, int selected)
 {
 	int i, count = 0, delta;
 
-	(void)verbose;
-
 	print_clock_header();
 
 	for (i = 0; i < clocks_info->num_children; i++)
diff --git a/powerdebug.c b/powerdebug.c
index 71c37f2..7d89a7b 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -271,7 +271,6 @@  int mainloop(struct powerdebug_options *options,
 				if (refreshwin)
 					command = REFRESH_WINDOW;
 				hrow = read_and_print_clock_info(
-					options->verbose,
 					highlighted_row,
 					command);
 				highlighted_row = hrow;
diff --git a/powerdebug.h b/powerdebug.h
index d2c0954..535f194 100644
--- a/powerdebug.h
+++ b/powerdebug.h
@@ -31,8 +31,8 @@  enum {CLOCK_SELECTED = 1, REFRESH_WINDOW};
 extern void read_and_dump_clock_info(char *clk);
 extern int read_clock_info(char *clkpath);
 extern void find_parents_for_clock(char *clkname, int complete);
-extern int  read_and_print_clock_info(int verbose, int hrow, int selected);
-extern void print_clock_info(int verbose, int hrow, int selected);
+extern int  read_and_print_clock_info(int hrow, int selected);
+extern void print_clock_info(int hrow, int selected);
 extern void print_string_val(char *name, char *val);
 extern void print_clock_header(void);
 extern void print_one_clock(int line, char *str, int bold, int highlight);