changeset 3987:a7d04bcd142f

libdevice/irq: fix unlink of more than one ep at once
author Alexandre Becoulet <alexandre.becoulet@free.fr>
date Wed, 11 Jul 2018 19:10:49 +0200
parents a8e5f136ff2d
children ef512fd01962
files libdevice/irq.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libdevice/irq.c	Wed Jul 11 17:29:48 2018 +0200
+++ b/libdevice/irq.c	Wed Jul 11 19:10:49 2018 +0200
@@ -306,13 +306,13 @@
       switch (src->base.link_count)
         {
         case 0:
-          return;
+          break;
 
         case 1: {
           struct dev_irq_sink_s *sink = (void*)src->base.links.single;
           device_irq_sink_unlink(src, sink);
           src->base.link_count = 0;
-          return;
+          break;
         }
 
 #if defined(CONFIG_DEVICE_IRQ_SHARING) || defined(CONFIG_DEVICE_IRQ_MULTI_SINK)
@@ -326,7 +326,7 @@
             }
           mem_free(r);
           src->base.link_count = 0;
-          return;
+          break;
         }
 #endif
         }