mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/saul_reg: fixed return value for rm()
This commit is contained in:
parent
26ce9cd95a
commit
190c144ac6
@ -58,7 +58,7 @@ int saul_reg_rm(saul_reg_t *dev)
|
||||
saul_reg_t *tmp = saul_reg;
|
||||
|
||||
if (saul_reg == NULL || dev == NULL) {
|
||||
return -EINVAL;
|
||||
return -ENODEV;
|
||||
}
|
||||
if (saul_reg == dev) {
|
||||
saul_reg = dev->next;
|
||||
|
Loading…
Reference in New Issue
Block a user