[PATCH 01/27] kern_tc.c: Remove unused code
Moyano, Gabriel
gabriel.moyano at dlr.de
Wed Nov 17 07:50:13 UTC 2021
From: Sebastian Huber <sebastian.huber at embedded-brains.de>
This fix relates to a Coverity issue (PW.DECLARED_BUT_NOT_REFERENCED).
---
cpukit/score/src/kern_tc.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c
index 1b65cf41ee..f004c9bf97 100644
--- a/cpukit/score/src/kern_tc.c
+++ b/cpukit/score/src/kern_tc.c
@@ -81,12 +81,6 @@ ISR_LOCK_DEFINE(, _Timecounter_Lock, "Timecounter")
#define printf(...)
#define bcopy(x, y, z) memcpy(y, x, z);
#define log(...)
-static inline int
-builtin_fls(int x)
-{
- return x ? sizeof(x) * 8 - __builtin_clz(x) : 0;
-}
-#define fls(x) builtin_fls(x)
/* FIXME: https://devel.rtems.org/ticket/2348 */
#define ntp_update_second(a, b) do { (void) a; (void) b; } while (0)
--
2.17.1
More information about the devel
mailing list