hidpp20: remove redundant rc check

Protocol error code is already handled in hidpp20_request_command.
This commit is contained in:
Haochen Tong
2018-11-27 20:11:15 +01:00
committed by Peter Hutterer
parent 74f01f3de4
commit 21936db58b

View File

@@ -421,9 +421,6 @@ hidpp20drv_update_button_1b04(struct ratbag_button *button)
control->reporting.updated = 1;
rc = hidpp20_special_key_mouse_set_control(drv_data->dev, control);
if (rc == HIDPP20_ERR_INVALID_ARGUMENT)
return -EINVAL;
if (rc)
log_error(device->ratbag,
"Error while writing profile: '%s' (%d)\n",