[rtems commit] kern_tc.c: Remove unused code

Sebastian Huber sebh at rtems.org
Mon Feb 1 06:20:12 UTC 2021


Module:    rtems
Branch:    master
Commit:    198e92635ccbd7fee17b7d91d77c3a288eeb9aac
Changeset: http://git.rtems.org/rtems/commit/?id=198e92635ccbd7fee17b7d91d77c3a288eeb9aac

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Jan 28 11:40:10 2021 +0100

kern_tc.c: Remove unused code

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 a93cfae..b5f761a 100644
--- a/cpukit/score/src/kern_tc.c
+++ b/cpukit/score/src/kern_tc.c
@@ -98,12 +98,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)
 



More information about the vc mailing list