From: batt Date: Thu, 18 Oct 2007 14:51:46 +0000 (+0000) Subject: Remove always true asserts. X-Git-Tag: 1.0.0~337 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=6c95319289fb529929d54f4af01fd399639d52bd;p=bertos.git Remove always true asserts. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@905 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/cpu/arm/drv/sysirq_at91.c b/cpu/arm/drv/sysirq_at91.c index e95d5a15..4beaf361 100644 --- a/cpu/arm/drv/sysirq_at91.c +++ b/cpu/arm/drv/sysirq_at91.c @@ -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;