summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidycchen <davidycchen@google.com>2020-03-25 14:58:42 +0800
committerdavidycchen <davidycchen@google.com>2020-03-25 21:31:53 +0800
commitf49ea5befa8b0c3090ade962be7c320a2871aa87 (patch)
tree45f80b41c32f33ac2ff1a841f315480df871e1d2
parent88d3e47017d2776a5dcfcccff9118b3bac105590 (diff)
downloadfts_touch_s5-f49ea5befa8b0c3090ade962be7c320a2871aa87.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: 151900042 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 46eddc7..eb95b5f 100644
--- a/fts.c
+++ b/fts.c
@@ -4208,11 +4208,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);