forked from drath/libratbag
hidp20: fix dead code in macro parsing
If rc is positive, it's the number of items. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Benjamin Tissoires
parent
6cdf8a901a
commit
3844a60837
@@ -1611,7 +1611,7 @@ hidpp20_onboard_profiles_parse_macro(struct hidpp20_device *device,
|
||||
int rc;
|
||||
|
||||
rc = hidpp20_onboard_profiles_read_macro(device, page, offset, ¯o);
|
||||
if (rc)
|
||||
if (rc <= 0)
|
||||
return rc;
|
||||
|
||||
count = rc;
|
||||
|
||||
Reference in New Issue
Block a user