diff options
| -rw-r--r-- | libcpu/sparc-v8/bm3803/interrupt.c | 2 | ||||
| -rw-r--r-- | libcpu/ti-dsp/c6x/interrupt.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/sparc-v8/bm3803/interrupt.c b/libcpu/sparc-v8/bm3803/interrupt.c index b3625862b4..45113266ef 100644 --- a/libcpu/sparc-v8/bm3803/interrupt.c +++ b/libcpu/sparc-v8/bm3803/interrupt.c @@ -72,7 +72,7 @@ rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler, { rt_isr_handler_t old_handler = RT_NULL; - if (vector < MAX_HANDLERS || vector >= 0) + if (vector < MAX_HANDLERS && vector >= 0) { old_handler = isr_table[vector].handler; diff --git a/libcpu/ti-dsp/c6x/interrupt.c b/libcpu/ti-dsp/c6x/interrupt.c index 6e48cb8efa..e0f938a4c6 100644 --- a/libcpu/ti-dsp/c6x/interrupt.c +++ b/libcpu/ti-dsp/c6x/interrupt.c @@ -78,7 +78,7 @@ rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler, { rt_isr_handler_t old_handler = RT_NULL; - if (vector < MAX_HANDLERS || vector >= 0) + if (vector < MAX_HANDLERS && vector >= 0) { old_handler = isr_table[vector].handler; |
