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:
parent
1050ef7932
commit
a071957746
1 changed files with 2 additions and 1 deletions
|
@ -1138,7 +1138,7 @@ static u8_t va_add(u8_t *label_uuid, u16_t *addr)
|
||||||
if (update) {
|
if (update) {
|
||||||
update->ref++;
|
update->ref++;
|
||||||
va_store(update);
|
va_store(update);
|
||||||
return 0;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!free_slot) {
|
if (!free_slot) {
|
||||||
|
@ -1170,6 +1170,7 @@ static u8_t va_del(u8_t *label_uuid, u16_t *addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
va_store(update);
|
va_store(update);
|
||||||
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (addr) {
|
if (addr) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue