Skip to contentSkip to conversation

perf: fix trivial checkpatch errors in builtin-help.

PATCH In review Thiago Farina 1 participant 2 messages Nov 3, 2009 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf: fix trivial checkpatch errors in builtin-help.

---
 tools/perf/builtin-help.c |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)
tools/perf/builtin-help.c +5 -7
index 4fb8734..768f9c8 100644
@@ -61,8 +61,7 @@ static const char *get_man_viewer_info(const char *name)
 {
 	struct man_viewer_info_list *viewer;
 
-	for (viewer = man_viewer_info_list; viewer; viewer = viewer->next)
-	{
+	for (viewer = man_viewer_info_list; viewer; viewer = viewer->next) {
 		if (!strcasecmp(name, viewer->name))
 			return viewer->info;
 	}
@@ -115,7 +114,7 @@ static int check_emacsclient_version(void)
 	return 0;
 }
 
-static void exec_woman_emacs(const char* path, const char *page)
+static void exec_woman_emacs(const char *path, const char *page)
 {
 	if (!check_emacsclient_version()) {
 		/* This works only with emacsclient version >= 22. */
@@ -129,7 +128,7 @@ static void exec_woman_emacs(const char* path, const char *page)
 	}
 }
 
-static void exec_man_konqueror(const char* path, const char *page)
+static void exec_man_konqueror(const char *path, const char *page)
 {
 	const char *display = getenv("DISPLAY");
 	if (display && *display) {
@@ -157,7 +156,7 @@ static void exec_man_konqueror(const char* path, const char *page)
 	}
 }
 
-static void exec_man_man(const char* path, const char *page)
+static void exec_man_man(const char *path, const char *page)
 {
 	if (!path)
 		path = "man";
@@ -364,9 +363,8 @@ static void show_man_page(const char *perf_cmd)
 
 	setup_man_path();
 	for (viewer = man_viewer_list; viewer; viewer = viewer->next)
-	{
 		exec_viewer(viewer->name, page); /* will return when unable */
-	}
+
 	if (fallback)
 		exec_viewer(fallback, page);
 	exec_viewer("man", page);
Signature · 1 line
1.6.5.1.61.ge79999
#1 lore raw

[tip:perf/core] perf: Clean up trivial style issues in builtin-help.c

Commit-ID:  c1e530178540df26eb39f10a972d06f96302ceb4
Gitweb:     http://git.kernel.org/tip/c1e530178540df26eb39f10a972d06f96302ceb4
Author:     Thiago Farina <[email protected]>
AuthorDate: Tue, 3 Nov 2009 08:28:45 -0500
Committer:  Ingo Molnar <[email protected]>
CommitDate: Tue, 3 Nov 2009 18:37:29 +0100

perf: Clean up trivial style issues in builtin-help.c

Pointed out by checkpatch.

LKML-Reference: <[email protected]>

---
 tools/perf/builtin-help.c |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)
tools/perf/builtin-help.c +5 -7
index 4fb8734..768f9c8 100644
@@ -61,8 +61,7 @@ static const char *get_man_viewer_info(const char *name)
 {
 	struct man_viewer_info_list *viewer;
 
-	for (viewer = man_viewer_info_list; viewer; viewer = viewer->next)
-	{
+	for (viewer = man_viewer_info_list; viewer; viewer = viewer->next) {
 		if (!strcasecmp(name, viewer->name))
 			return viewer->info;
 	}
@@ -115,7 +114,7 @@ static int check_emacsclient_version(void)
 	return 0;
 }
 
-static void exec_woman_emacs(const char* path, const char *page)
+static void exec_woman_emacs(const char *path, const char *page)
 {
 	if (!check_emacsclient_version()) {
 		/* This works only with emacsclient version >= 22. */
@@ -129,7 +128,7 @@ static void exec_woman_emacs(const char* path, const char *page)
 	}
 }
 
-static void exec_man_konqueror(const char* path, const char *page)
+static void exec_man_konqueror(const char *path, const char *page)
 {
 	const char *display = getenv("DISPLAY");
 	if (display && *display) {
@@ -157,7 +156,7 @@ static void exec_man_konqueror(const char* path, const char *page)
 	}
 }
 
-static void exec_man_man(const char* path, const char *page)
+static void exec_man_man(const char *path, const char *page)
 {
 	if (!path)
 		path = "man";
@@ -364,9 +363,8 @@ static void show_man_page(const char *perf_cmd)
 
 	setup_man_path();
 	for (viewer = man_viewer_list; viewer; viewer = viewer->next)
-	{
 		exec_viewer(viewer->name, page); /* will return when unable */
-	}
+
 	if (fallback)
 		exec_viewer(fallback, page);
 	exec_viewer("man", page);