touchscreen: clean-up uninitialized variable warning by static analysis 20/287220/1
authorYunhee Seo <yuni.seo@samsung.com>
Thu, 19 Jan 2023 06:24:23 +0000 (15:24 +0900)
committeryunhee seo <yuni.seo@samsung.com>
Wed, 25 Jan 2023 03:02:09 +0000 (03:02 +0000)
commit3a290b9622bb4ee5afd85cf088daf41485a2648f
treec2172a829ec670695b89160c500cd5b43a93ad39
parent8d200869250d5a3f2caceb7a661d135cbf5c93c3
touchscreen: clean-up uninitialized variable warning by static analysis

Add return code to avoid reaching uninitialized enum variable "state".

Change-Id: Idce5e24bc2c979c350629b8e413494dd62003cf5
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
(cherry picked from commit 5d024fdb8bd0ab5d493ddaeeccd0fff5bc9472f8)
src/touchscreen/touchscreen.c