aboutsummaryrefslogtreecommitdiffstats
path: root/src/chevents.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-10-01 17:42:47 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-10-01 17:42:47 +0000
commit3a90ab685aaae59f242ae31260e67e9125ae78cd (patch)
tree1413d1fa5a06ee7e720a1de121c537bb1ecb1c45 /src/chevents.c
parent9a0ef300bce50901d5de3d6d722e29b79a2f9a36 (diff)
downloadChibiOS-3a90ab685aaae59f242ae31260e67e9125ae78cd.tar.gz
ChibiOS-3a90ab685aaae59f242ae31260e67e9125ae78cd.tar.bz2
ChibiOS-3a90ab685aaae59f242ae31260e67e9125ae78cd.zip
Preparation for AVR core support.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@27 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src/chevents.c')
-rw-r--r--src/chevents.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/chevents.c b/src/chevents.c
index 87f990c16..4dcf37a22 100644
--- a/src/chevents.c
+++ b/src/chevents.c
@@ -92,7 +92,6 @@ void chEvtClear(t_eventmask mask) {
*/
void chEvtSend(EventSource *esp) {
EventListener *elp;
- BOOL flag = FALSE;
chSysLock();
@@ -102,11 +101,10 @@ void chEvtSend(EventSource *esp) {
tp->p_epending |= EventMask(elp->el_id);
if ((tp->p_state == PRWTEVENT) && (tp->p_epending & tp->p_ewmask))
- chSchReadyI(tp), flag = TRUE;
+ chSchReadyI(tp);
elp = elp->el_next;
}
- if (flag)
- chSchRescheduleI();
+ chSchRescheduleI();
chSysUnlock();
}
@@ -174,7 +172,7 @@ static void unwait(void *p) {
// Test removed, it should never happen.
// if (((Thread *)p)->p_state == PRWTEVENT)
- chSchReadyI(dequeue(p))->p_rdymsg = RDY_TIMEOUT;
+ chSchReadyI(p)->p_rdymsg = RDY_TIMEOUT;
}
/**