mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
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:
parent
27a903f872
commit
57c2c02859
3 changed files with 0 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue