input: touchscreen: Fix unused result warnings

Fixes:
../drivers/input/touchscreen/focaltech_touch/focaltech_core.c:979:3:
error: ignoring return value of function declared with
'warn_unused_result' attribute [-Werror,-Wunused-result]
                PTR_ERR(acl_desc);
                ^~~~~~~ ~~~~~~~~
../drivers/input/touchscreen/focaltech_touch/focaltech_core.c:986:3:
error: ignoring return value of function declared with
'warn_unused_result' attribute [-Werror,-Wunused-result]
                PTR_ERR(sgl_desc);
                ^~~~~~~ ~~~~~~~~

Change-Id: I941c32696a52a84a0a9272d4f969755932925aaa
This commit is contained in:
Michael Bestas 2024-03-26 21:32:47 +02:00 • committed by Alexander Winkowski
commit 57c2c02859
No known key found for this signature in database
GPG key ID: 72762A66704CDE44
3 changed files with 0 additions and 6 deletions

View file

@ -976,14 +976,12 @@ static int fts_ts_vm_mem_lend(struct fts_ts_data *fts_data)
acl_desc = fts_ts_vm_get_acl(HH_TRUSTED_VM);
if (IS_ERR(acl_desc)) {
pr_err("Failed to get acl of IO memories for Trusted touch\n");
PTR_ERR(acl_desc);
return -EINVAL;
}
sgl_desc = fts_ts_vm_get_sgl(fts_data->vm_info);
if (IS_ERR(sgl_desc)) {
pr_err("Failed to get sgl of IO memories for Trusted touch\n");
PTR_ERR(sgl_desc);
rc = -EINVAL;
goto sgl_error;
}

View file

@ -925,14 +925,12 @@ static int nvt_ts_vm_mem_lend(struct nvt_ts_data *ts)
acl_desc = nvt_ts_vm_get_acl(HH_TRUSTED_VM);
if (IS_ERR(acl_desc)) {
pr_err("Failed to get acl of IO memories for Trusted touch\n");
PTR_ERR(acl_desc);
return -EINVAL;
}
sgl_desc = nvt_ts_vm_get_sgl(ts->vm_info);
if (IS_ERR(sgl_desc)) {
pr_err("Failed to get sgl of IO memories for Trusted touch\n");
PTR_ERR(sgl_desc);
rc = -EINVAL;
goto sgl_error;
}

View file

@ -970,14 +970,12 @@ static int fts_vm_mem_lend(struct fts_ts_info *info)
acl_desc = fts_vm_get_acl(HH_TRUSTED_VM);
if (IS_ERR(acl_desc)) {
pr_err("Failed to get acl of IO memories for Trusted touch\n");
PTR_ERR(acl_desc);
return -EINVAL;
}
sgl_desc = fts_vm_get_sgl(info->vm_info);
if (IS_ERR(sgl_desc)) {
pr_err("Failed to get sgl of IO memories for Trusted touch\n");
PTR_ERR(sgl_desc);
rc = -EINVAL;
goto sgl_error;
}