hidpp10: fix a faulty error check which prevent macro parsing

This commit is contained in:
Yaroslav Chvanov
2023-02-24 23:11:27 +03:00
parent 5158d80cfa
commit 200fbe5875

View File

@@ -1206,7 +1206,7 @@ hidpp10_onboard_profiles_parse_macro(struct hidpp10_device *device,
hidpp_log_raw(&device->base, "*** macro starts at (0x%02x, 0x%04x) ***\n", page, offset);
rc = hidpp10_onboard_profiles_read_macro(device, page, offset, &macro);
if (rc) {
if (rc < 0) {
hidpp_log_raw(&device->base, "hidpp10: failed to read macro\n");
return rc;
}