summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-12-05 17:56:19 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-12-06 10:01:24 +0100
commit073e3e106b0132857f9e0020e536ad41613713b9 (patch)
tree0bce91fac968191ba32d1d462cde831fc8134c68 /cpukit/score/src
parenttftpfs: PR1624: Fix parsing of hostnames and paths (diff)
downloadrtems-073e3e106b0132857f9e0020e536ad41613713b9.tar.bz2
score: Critical fix for timer server
Under certain conditions it is possible that a call to _Watchdog_Adjust_to_chain() happens with a unit parameter value of zero (for example sptests/spintrcritical17). Remove superfluous checks that prevent an adjust to a chain of a watchdog chain which first element has a delta zero value.
Diffstat (limited to 'cpukit/score/src')
-rw-r--r--cpukit/score/src/watchdogadjusttochain.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/cpukit/score/src/watchdogadjusttochain.c b/cpukit/score/src/watchdogadjusttochain.c
index 569a9364f7..8d6e4656b8 100644
--- a/cpukit/score/src/watchdogadjusttochain.c
+++ b/cpukit/score/src/watchdogadjusttochain.c
@@ -33,16 +33,9 @@ void _Watchdog_Adjust_to_chain(
ISR_Level level;
Watchdog_Control *first;
- if ( units <= 0 ) {
- return;
- }
-
_ISR_Disable( level );
while ( 1 ) {
- if ( units <= 0 ) {
- break;
- }
if ( _Chain_Is_empty( header ) ) {
break;
}