liblur: check return value instead of comparing the out_ptr

Fixes a clang-analyze warning for a dead assignment.
This commit is contained in:
Yaroslav Chvanov
2023-05-20 00:13:45 +03:00
parent b717f946ef
commit 4d6f80de01

View File

@@ -204,7 +204,7 @@ lur_receiver_enumerate(struct lur_receiver *lur,
bool is_new_device = true;
rc = hidpp10_device_new(&base, i, HIDPP10_PROFILE_UNKNOWN, 1, &d);
if (!d)
if (rc)
continue;
rc = hidpp10_get_pairing_information_device_name(d, name, &name_size);