All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] trace: modified is_good_name return type to bool
@ 2012-04-18 16:00 Sasikantha babu
  0 siblings, 0 replies; only message in thread
From: Sasikantha babu @ 2012-04-18 16:00 UTC (permalink / raw)
  To: Steven Rostedt, Frederic Weisbecker, Ingo Molnar
  Cc: linux-kernel, Sasikantha babu

Modified is_good_name return type to bool, Since it returns either 0 or 1

Signed-off-by: Sasikantha babu <sasikanth.v19@gmail.com>
---
 kernel/trace/trace_kprobe.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c
index 580a05e..c0a15ff 100644
--- a/kernel/trace/trace_kprobe.c
+++ b/kernel/trace/trace_kprobe.c
@@ -632,15 +632,15 @@ static int kretprobe_dispatcher(struct kretprobe_instance *ri,
 				struct pt_regs *regs);
 
 /* Check the name is good for event/group/fields */
-static int is_good_name(const char *name)
+static bool is_good_name(const char *name)
 {
 	if (!isalpha(*name) && *name != '_')
-		return 0;
+		return false;
 	while (*++name != '\0') {
 		if (!isalpha(*name) && !isdigit(*name) && *name != '_')
-			return 0;
+			return false;
 	}
-	return 1;
+	return true;
 }
 
 /*
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-04-18 15:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-18 16:00 [PATCH] trace: modified is_good_name return type to bool Sasikantha babu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.