Since pps->capgen is not used in uniprocessor configurations, there is no need 
to verified if it is equal to zero

Update #2349
---
 cpukit/score/src/kern_tc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c
index 92739d8edd..897f81511e 100644
--- a/cpukit/score/src/kern_tc.c
+++ b/cpukit/score/src/kern_tc.c
@@ -2165,7 +2165,11 @@ pps_event(struct pps_state *pps, int event)
        if ((event & pps->ppsparam.mode) == 0)
                return;
        /* If the timecounter was wound up underneath us, bail out. */
+#if defined(RTEMS_SMP)
        if (pps->capgen == 0 || pps->capgen !=
+#else
+       if (pps->capgen !=
+#endif
            atomic_load_acq_int(&pps->capth->th_generation))
                return;
 
-- 
2.25.1

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to