[rtems commit] bsp/gen5200: Fix warnings

Sebastian Huber sebh at rtems.org
Fri Jul 28 11:07:13 UTC 2017


Module:    rtems
Branch:    master
Commit:    fd3437c1af02a1033bc2d9f040f0dd1f269127cf
Changeset: http://git.rtems.org/rtems/commit/?id=fd3437c1af02a1033bc2d9f040f0dd1f269127cf

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Jul 28 13:06:55 2017 +0200

bsp/gen5200: Fix warnings

---

 c/src/lib/libbsp/powerpc/gen5200/irq/irq.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/c/src/lib/libbsp/powerpc/gen5200/irq/irq.c b/c/src/lib/libbsp/powerpc/gen5200/irq/irq.c
index 58e2f2a..11d9e39 100644
--- a/c/src/lib/libbsp/powerpc/gen5200/irq/irq.c
+++ b/c/src/lib/libbsp/powerpc/gen5200/irq/irq.c
@@ -381,9 +381,8 @@ void bsp_interrupt_vector_enable( rtems_vector_number vector)
         BSP_enable_crit_irq_at_siu( vector);
         break;
       default:
-        rtems_interrupt_enable( level);
-        printk( "No valid base index\n");
-        return RTEMS_INVALID_NUMBER;
+        bsp_interrupt_assert(0);
+        break;
     }
 
     rtems_interrupt_enable( level);
@@ -415,9 +414,8 @@ void bsp_interrupt_vector_disable( rtems_vector_number vector)
         BSP_disable_crit_irq_at_siu( vector);
         break;
       default:
-        rtems_interrupt_enable( level);
-        printk( "No valid base index\n");
-        return RTEMS_INVALID_NUMBER;
+        bsp_interrupt_assert(0);
+        break;
     }
 
     rtems_interrupt_enable( level);



More information about the vc mailing list