Browse Source

sys/saul_reg: fixed return value for rm()

pr/spi.typo
Hauke Petersen 7 years ago
parent
commit
190c144ac6
  1. 2
      sys/saul_reg/saul_reg.c

2
sys/saul_reg/saul_reg.c

@ -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…
Cancel
Save