diff options
author | davidycchen <davidycchen@google.com> | 2020-03-25 14:58:42 +0800 |
---|---|---|
committer | davidycchen <davidycchen@google.com> | 2020-03-25 16:10:35 +0800 |
commit | de3d00b3e3829689c1d7051810dd85c1c0f1d276 (patch) | |
tree | d294900c0c86dcef3a1ce7083840019bbf81132d | |
parent | 5be38a5b22205467dd0435d24df75a6e19975cba (diff) | |
download | fts_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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); |