avoid some useless assignments

This commit is contained in:
Wim Taymans 2020-05-20 13:52:10 +02:00
parent 4f60dcadc6
commit eb93f259e0
7 changed files with 10 additions and 13 deletions

View file

@ -411,7 +411,7 @@ static void bluez5_enum_object_info(void *data, uint32_t id,
return;
bluez5_remove_device(impl, device);
} else if (device == NULL) {
if ((device = bluez5_create_device(impl, id, info)) == NULL)
if (bluez5_create_device(impl, id, info) == NULL)
return;
} else {
bluez5_update_device(impl, device, info);