[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210824065735.60660-1-deng.changcheng@zte.com.cn>
Date: Mon, 23 Aug 2021 23:57:35 -0700
From: CGEL <cgel.zte@...il.com>
To: Tzvetomir Stoyanov <tz.stoyanov@...il.com>
Cc: Arnaldo Carvalho de Melo <acme@...hat.com>,
Steven Rostedt <rostedt@...dmis.org>,
linux-kernel@...r.kernel.org,
Jing Yangyang <jing.yangyang@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH linux-next] tools:traceevent: fix boolreturn.cocci warnings
From: Jing Yangyang <jing.yangyang@....com.cn>
./tools/lib/traceevent/event-parse-api.c:289:8-9:WARNING
return of 0/1 in function 'tep_is_local_bigendian' with return type bool
Return statements in functions returning bool should use true/false
instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: Jing Yangyang <jing.yangyang@....com.cn>
---
tools/lib/traceevent/event-parse-api.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/lib/traceevent/event-parse-api.c b/tools/lib/traceevent/event-parse-api.c
index f8361e4..f153476 100644
--- a/tools/lib/traceevent/event-parse-api.c
+++ b/tools/lib/traceevent/event-parse-api.c
@@ -286,7 +286,7 @@ bool tep_is_local_bigendian(struct tep_handle *tep)
{
if (tep)
return (tep->host_bigendian == TEP_BIG_ENDIAN);
- return 0;
+ return false;
}
/**
--
1.8.3.1
Powered by blists - more mailing lists