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:
parent
9d1e2661ff
commit
a5a52980ba
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user