Bluetooth: GATT: Fix wrong check for empty database
This fixes regression introduced by
87f2f7afec
.
Change-Id: I4a1177ad42c7bb20fe66f8927cd00a30236152af
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
3781ed061b
commit
d8008533a9
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ int bt_gatt_register(struct bt_gatt_attr *attrs, size_t count)
|
|||
#else
|
||||
sys_slist_init(&list);
|
||||
|
||||
if (!sys_slist_is_empty(&db)) {
|
||||
if (sys_slist_is_empty(&db)) {
|
||||
handle = 0;
|
||||
goto populate;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue