Remove always true asserts.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 18 Oct 2007 14:51:46 +0000 (14:51 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 18 Oct 2007 14:51:46 +0000 (14:51 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@905 38d2e660-2303-0410-9eaa-f027e97ec537

cpu/arm/drv/sysirq_at91.c

index e95d5a15dc49af4d01ab8b5a2ead2c0ac871f429..4beaf3617cbc320d15fa48a5b7f8ec8cfe7311bc 100644 (file)
@@ -144,7 +144,6 @@ void sysirq_init(void)
  */
 void sysirq_setHandler(sysirq_t irq, sysirq_handler_t handler)
 {
-       ASSERT(irq >= 0);
        ASSERT(irq < SYSIRQ_CNT);
        sysirq_tab[irq].handler = handler;
 }
@@ -154,7 +153,6 @@ void sysirq_setHandler(sysirq_t irq, sysirq_handler_t handler)
  */
 void sysirq_setEnable(sysirq_t irq, bool enable)
 {
-       ASSERT(irq >= 0);
        ASSERT(irq < SYSIRQ_CNT);
 
        sysirq_tab[irq].setEnable(enable);
@@ -166,7 +164,6 @@ void sysirq_setEnable(sysirq_t irq, bool enable)
  */
 bool sysirq_enabled(sysirq_t irq)
 {
-       ASSERT(irq >= 0);
        ASSERT(irq < SYSIRQ_CNT);
 
        return sysirq_tab[irq].enabled;