Module: xenomai-2.5
Branch: master
Commit: 158790d0b71755a92ed0a357466827f791c9a4bc
URL:    
http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=158790d0b71755a92ed0a357466827f791c9a4bc

Author: Andreas Glatz <andreasgl...@ruggedcom.com>
Date:   Fri Feb 12 18:36:26 2010 -0500

native: removed redundant code in rt_intr_delete()

This code caused xnintr_detach() to be called twice on an interrupt
object.

Signed-off-by: Andreas Glatz <andreasgl...@ruggedcom.com>

---

 ksrc/skins/native/intr.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/ksrc/skins/native/intr.c b/ksrc/skins/native/intr.c
index f52daff..8abcd27 100644
--- a/ksrc/skins/native/intr.c
+++ b/ksrc/skins/native/intr.c
@@ -362,8 +362,7 @@ int rt_intr_delete(RT_INTR *intr)
 
        xnlock_put_irqrestore(&nklock, s);
 
-       err = xnintr_detach(&intr->intr_base);
-       xnintr_destroy(&intr->intr_base);
+       err = xnintr_destroy(&intr->intr_base);
 
        if (rc == XNSYNCH_RESCHED)
                /* Some task has been woken up as a result of the deletion:


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to