touchscreen: goodix_gt9xx: fix coverity warning
authorYingyuan Zhu <yingyuan.zhu@amlogic.com>
Wed, 29 Aug 2018 11:52:14 +0000 (19:52 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 6 Sep 2018 14:03:41 +0000 (07:03 -0700)
commitb18fccc8dae490a23b27b5f5fca10c53600020b9
treee086a248be205f0b4591fb1ea750209b69f6b2ff
parent9ed55674339bbe7c95201f12d9aecc0c1469503e
touchscreen: goodix_gt9xx: fix coverity warning

PD#172713: touchscreen: goodix_gt9xx: fix coverity warning

There is no judgment about whether the pointer
 is NULL before using it.
This causes "Dereference before null check".

Change-Id: Ic4d96cc1e48d16f409b71c70a049b433eeb39bf1
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
drivers/amlogic/input/touchscreen/goodix_gt9xx/gt9xx_update.c