Commit 2ce4639f authored by Steven Rostedt (VMware)'s avatar Steven Rostedt (VMware) Committed by Arnaldo Carvalho de Melo

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: default avatarSteven 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.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 80c5526c
...@@ -88,7 +88,7 @@ void tep_clear_flag(struct tep_handle *tep, enum tep_flag flag) ...@@ -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) bool tep_test_flag(struct tep_handle *tep, enum tep_flag flag)
{ {
if (tep) if (tep)
return (tep->flags & flag); return tep->flags & flag;
return false; return false;
} }
...@@ -340,7 +340,7 @@ void tep_set_latency_format(struct tep_handle *pevent, int lat) ...@@ -340,7 +340,7 @@ void tep_set_latency_format(struct tep_handle *pevent, int lat)
bool tep_is_old_format(struct tep_handle *tep) bool tep_is_old_format(struct tep_handle *tep)
{ {
if (tep) if (tep)
return !!(tep->old_format); return tep->old_format;
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment