diff options
author | davidycchen <davidycchen@google.com> | 2020-03-25 14:58:42 +0800 |
---|---|---|
committer | davidycchen <davidycchen@google.com> | 2020-03-25 21:31:53 +0800 |
commit | f49ea5befa8b0c3090ade962be7c320a2871aa87 (patch) | |
tree | 45f80b41c32f33ac2ff1a841f315480df871e1d2 | |
parent | 88d3e47017d2776a5dcfcccff9118b3bac105590 (diff) | |
download | fts_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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); |