1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/saul_reg: Fix saul_reg_rm for first element

This commit is contained in:
Ronald Weber 2018-02-18 11:30:46 +01:00
parent 9d1e2661ff
commit a5a52980ba

View File

@ -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;