diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2019-04-01 12:43:13 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-04-01 14:18:09 -0400 |
commit | 2ce4639f6936261bf6e0bae5c21a0c09a8daeacc (patch) | |
tree | fc0ce0e6423c60d260b62a8ce549b6d46cb3e9b2 /tools/lib/traceevent/event-parse-api.c | |
parent | 80c5526c8544ae76cba31fb9702ab8accac1f0f3 (diff) |
tools lib traceevent: Removed unneeded !! and return parenthesis
As return is not a function we do not need parenthesis around the return
value. Also, a function returning bool does not need to add !!.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Tzvetomir Stoyanov <tstoyanov@vmware.com>
Link: http://lkml.kernel.org/r/20190401164343.817886725@goodmis.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/traceevent/event-parse-api.c')
-rw-r--r-- | tools/lib/traceevent/event-parse-api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/traceevent/event-parse-api.c b/tools/lib/traceevent/event-parse-api.c index 2ac8b44854ce..002b3f73862b 100644 --- a/tools/lib/traceevent/event-parse-api.c +++ b/tools/lib/traceevent/event-parse-api.c | |||
@@ -88,7 +88,7 @@ void tep_clear_flag(struct tep_handle *tep, enum tep_flag flag) | |||
88 | bool tep_test_flag(struct tep_handle *tep, enum tep_flag flag) | 88 | bool tep_test_flag(struct tep_handle *tep, enum tep_flag flag) |
89 | { | 89 | { |
90 | if (tep) | 90 | if (tep) |
91 | return (tep->flags & flag); | 91 | return tep->flags & flag; |
92 | return false; | 92 | return false; |
93 | } | 93 | } |
94 | 94 | ||
@@ -340,7 +340,7 @@ void tep_set_latency_format(struct tep_handle *pevent, int lat) | |||
340 | bool tep_is_old_format(struct tep_handle *tep) | 340 | bool tep_is_old_format(struct tep_handle *tep) |
341 | { | 341 | { |
342 | if (tep) | 342 | if (tep) |
343 | return !!(tep->old_format); | 343 | return tep->old_format; |
344 | return false; | 344 | return false; |
345 | } | 345 | } |
346 | 346 | ||