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:
Luiz Augusto von Dentz 2017-04-10 20:30:57 +03:00 committed by Luiz Augusto von Dentz
commit d8008533a9

View file

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