trace: modified is_good_name return type to bool
PATCH 1/1 trace: modified is_good_name return type to bool
Modified is_good_name return type to bool, Since it returns either 0 or 1
Signed-off-by Sasikantha babu <[email protected]>
--- kernel/trace/trace_kprobe.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
kernel/trace/trace_kprobe.c +4 -4
@@ -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; }/*
Signature · 1 line
1.7.3.4