diff --git a/src/hidpp20.c b/src/hidpp20.c index 0855a781..e99d219e 100644 --- a/src/hidpp20.c +++ b/src/hidpp20.c @@ -1552,7 +1552,7 @@ hidpp20_onboard_profiles_parse_macro(struct hidpp20_device *device, int rc; rc = hidpp20_onboard_profiles_read_macro(device, page, offset, ¯o); - if (rc < 0) + if (rc) return rc; count = rc;