From a5a52980badfe994acc7b28d674b532fbff673ab Mon Sep 17 00:00:00 2001 From: Ronald Weber Date: Sun, 18 Feb 2018 11:30:46 +0100 Subject: [PATCH] sys/saul_reg: Fix saul_reg_rm for first element --- sys/saul_reg/saul_reg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/saul_reg/saul_reg.c b/sys/saul_reg/saul_reg.c index 5f0528318a..40f521ebf2 100644 --- a/sys/saul_reg/saul_reg.c +++ b/sys/saul_reg/saul_reg.c @@ -62,6 +62,7 @@ int saul_reg_rm(saul_reg_t *dev) } if (saul_reg == dev) { saul_reg = dev->next; + return 0; } while (tmp->next && (tmp->next != dev)) { tmp = tmp->next;