From: Steven Rostedt (VMware) Date: Mon, 1 Apr 2019 16:43:13 +0000 (-0400) Subject: tools lib traceevent: Removed unneeded !! and return parenthesis X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2ce4639f6936261bf6e0bae5c21a0c09a8daeacc;p=openwrt%2Fstaging%2Fblogic.git 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) Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Cc: Tzvetomir Stoyanov Link: http://lkml.kernel.org/r/20190401164343.817886725@goodmis.org Signed-off-by: Arnaldo Carvalho de Melo --- 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; }