diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2019-04-08 18:23:33 +0300 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2019-04-08 12:32:02 -0400 |
commit | 55830cc49f789a55d9b1c2a489cb1915d260e53a (patch) | |
tree | 434b6f355cfa7c61647667bb93e4e721ffdad90c | |
parent | d85a82f08488ef674747d29ffa4d266e638ebc44 (diff) | |
download | trace-cmd-55830cc49f789a55d9b1c2a489cb1915d260e53a.tar.gz |
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 !!.
Link: http://lore.kernel.org/linux-trace-devel/20190408152340.12450-4-tstoyanov@vmware.com
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>
-rw-r--r-- | lib/traceevent/event-parse-api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/traceevent/event-parse-api.c b/lib/traceevent/event-parse-api.c index f2e5d185..fb49d1b0 100644 --- a/lib/traceevent/event-parse-api.c +++ b/lib/traceevent/event-parse-api.c @@ -88,7 +88,7 @@ void tep_clear_flag(struct tep_handle *tep, enum tep_flag flag) bool tep_test_flag(struct tep_handle *tep, enum tep_flag flag) { if (tep) - return (tep->flags & flag); + return tep->flags & flag; return false; } @@ -367,7 +367,7 @@ int tep_get_parsing_failures(struct tep_handle *tep) bool tep_is_old_format(struct tep_handle *tep) { if (tep) - return !!(tep->old_format); + return tep->old_format; return false; } |