mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-01-05 23:00:24 +01:00
reis: fix return code handling in allow_capabilities
send_msg() returns zero on success or a negative errno otherwise.
This commit is contained in:
parent
9e7016e1fe
commit
dde6af06e2
1 changed files with 1 additions and 4 deletions
|
|
@ -134,8 +134,5 @@ reis_allow_capability(struct reis *reis, enum reis_device_capability capability,
|
|||
configure_capabilities.allowed_capabilities = caps;
|
||||
|
||||
int rc = send_msg(reis->eisfd, &msg);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
return -EINVAL;
|
||||
return rc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue