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

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Tue Jan 12 00:45:03 2010 +0100

arm: fix rthal_irq_end

---

 ksrc/arch/arm/hal.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ksrc/arch/arm/hal.c b/ksrc/arch/arm/hal.c
index 6765a10..3faa75d 100644
--- a/ksrc/arch/arm/hal.c
+++ b/ksrc/arch/arm/hal.c
@@ -224,9 +224,9 @@ int rthal_irq_disable(unsigned irq)
     return rthal_irq_chip_disable(irq);
 }
 
-int rthal_irq_end(unsigned irq || rthal_irq_descp(irq) == NULL)
+int rthal_irq_end(unsigned irq)
 {
-    if (irq >= IPIPE_NR_XIRQS)
+    if (irq >= IPIPE_NR_XIRQS || rthal_irq_descp(irq) == NULL)
         return -EINVAL;
 
     return rthal_irq_chip_end(irq);


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

Reply via email to