[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-2ce4639f6936261bf6e0bae5c21a0c09a8daeacc@git.kernel.org>
Date: Fri, 5 Apr 2019 04:46:18 -0700
From: "tip-bot for Steven Rostedt (VMware)" <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: tstoyanov@...are.com, hpa@...or.com, tglx@...utronix.de,
acme@...hat.com, linux-kernel@...r.kernel.org, jolsa@...hat.com,
rostedt@...dmis.org, mingo@...nel.org, akpm@...ux-foundation.org,
namhyung@...nel.org
Subject: [tip:perf/core] tools lib traceevent: Removed unneeded !! and
return parenthesis
Commit-ID: 2ce4639f6936261bf6e0bae5c21a0c09a8daeacc
Gitweb: https://git.kernel.org/tip/2ce4639f6936261bf6e0bae5c21a0c09a8daeacc
Author: Steven Rostedt (VMware) <rostedt@...dmis.org>
AuthorDate: Mon, 1 Apr 2019 12:43:13 -0400
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Mon, 1 Apr 2019 15:18:09 -0300
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@...dmis.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>
Cc: Jiri Olsa <jolsa@...hat.com>
Cc: Namhyung Kim <namhyung@...nel.org>
Cc: Tzvetomir Stoyanov <tstoyanov@...are.com>
Link: http://lkml.kernel.org/r/20190401164343.817886725@goodmis.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/lib/traceevent/event-parse-api.c | 4 ++--
1 file 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)
bool tep_test_flag(struct tep_handle *tep, enum tep_flag flag)
{
if (tep)
- return (tep->flags & flag);
+ return tep->flags & flag;
return false;
}
@@ -340,7 +340,7 @@ void tep_set_latency_format(struct tep_handle *pevent, int lat)
bool tep_is_old_format(struct tep_handle *tep)
{
if (tep)
- return !!(tep->old_format);
+ return tep->old_format;
return false;
}
Powered by blists - more mailing lists