summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidycchen <davidycchen@google.com>2020-03-25 14:58:42 +0800
committerdavidycchen <davidycchen@google.com>2020-03-25 16:10:35 +0800
commitde3d00b3e3829689c1d7051810dd85c1c0f1d276 (patch)
treed294900c0c86dcef3a1ce7083840019bbf81132d
parent5be38a5b22205467dd0435d24df75a6e19975cba (diff)
downloadfts_touch-de3d00b3e3829689c1d7051810dd85c1c0f1d276.tar.gz
touch:fts: avoid null pointer of limit_file name
Let limit_file name to set default value in fts_identify_panel even though fts_read_panel_extinfo fail to read information from display driver. Bug: 152280824 Test: touch works Change-Id: Idb0b02b4f0df87eab6f8439016605ccbb3f3622f Signed-off-by: davidycchen <davidycchen@google.com>
-rw-r--r--fts.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fts.c b/fts.c
index 64a78fd..7f9d8ea 100644
--- a/fts.c
+++ b/fts.c
@@ -4210,11 +4210,9 @@ static int fts_fw_update(struct fts_ts_info *info)
* there is extinfo to read but is not yet available.
*/
ret = fts_read_panel_extinfo(info, 10);
- if (ret < 0) {
+ if (ret < 0)
pr_err("%s: Failed or timed out during read of extinfo. ret=%d\n",
__func__, ret);
- goto out;
- }
/* Identify panel given extinfo that may have been received. */
ret = fts_identify_panel(info);