1
0
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:
Hauke Petersen 2016-04-15 15:06:25 +02:00
parent 26ce9cd95a
commit 190c144ac6

View File

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