touchscreen: goodix_gt1x: fix coverity warning
authorYingyuan Zhu <yingyuan.zhu@amlogic.com>
Wed, 29 Aug 2018 11:07:23 +0000 (19:07 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 6 Sep 2018 13:59:34 +0000 (06:59 -0700)
commit35a6b7fa1d9bb6c204c5641fc98db27d359f31f1
tree77e0d0949121a7d341001a1f2c81b2418bee3f98
parent3ff706aea42c79692b443b4b667822cad78f19ca
touchscreen: goodix_gt1x: fix coverity warning

PD#172714: touchscreen: goodix_gt1x: fix coverity warning

1.The return value of the function "gt1x_i2c_read" is not
checked in the "gt1x_generic.c" file.
2.There is no exit condition for the "while (retry > 0)"
loop statement in the "gt1x_update.c" file.
This causes "Untrusted valued as argument" and "Logically dead code".

Change-Id: I07c0639d084ca3b961dd187ce6721f0167b2e4cc
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
drivers/amlogic/input/touchscreen/goodix_gt1x/gt1x_generic.c
drivers/amlogic/input/touchscreen/goodix_gt1x/gt1x_update.c