Bluetooth: Mesh: Fixes wrong return value

Fixes missing return value on `va_del`
Fixes wrong return value on `va_add`

Signed-off-by: Lingao Meng <mengabc1086@gmail.com>
This commit is contained in:
Lingao Meng 2019-11-26 23:03:28 -08:00 committed by Johan Hedberg
commit a071957746

View file

@ -1138,7 +1138,7 @@ static u8_t va_add(u8_t *label_uuid, u16_t *addr)
if (update) {
update->ref++;
va_store(update);
return 0;
return STATUS_SUCCESS;
}
if (!free_slot) {
@ -1170,6 +1170,7 @@ static u8_t va_del(u8_t *label_uuid, u16_t *addr)
}
va_store(update);
return STATUS_SUCCESS;
}
if (addr) {