diff options
author | Youngjae Cho <y0.cho@samsung.com> | 2021-03-24 15:35:39 +0900 |
---|---|---|
committer | Youngjae Cho <y0.cho@samsung.com> | 2021-03-24 15:35:39 +0900 |
commit | 3a78d72abde26ce3722f88c1ea4caedb99d7aed0 (patch) | |
tree | 94160aefd4b87b168eeceb65d02656b905e3baae | |
parent | 14688219cfdb084ba2a94258b04410a3b8fc8385 (diff) | |
download | device-manager-plugin-artik-3a78d72abde26ce3722f88c1ea4caedb99d7aed0.tar.gz device-manager-plugin-artik-3a78d72abde26ce3722f88c1ea4caedb99d7aed0.tar.bz2 device-manager-plugin-artik-3a78d72abde26ce3722f88c1ea4caedb99d7aed0.zip |
Fix coverity issuetizen
Change-Id: Ifaca1fa283a5afaada79945e012fae8a11ce3d1f
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
-rw-r--r-- | hw/touchscreen/touchscreen.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hw/touchscreen/touchscreen.c b/hw/touchscreen/touchscreen.c index e80ab2e..939a4fa 100644 --- a/hw/touchscreen/touchscreen.c +++ b/hw/touchscreen/touchscreen.c @@ -140,13 +140,14 @@ static int touchscreen_init(void **data) { hal_backend_touchscreen_funcs *touchscreen_funcs; - touchscreen_funcs = calloc(1, sizeof(hal_backend_touchscreen_funcs)); - if (!touchscreen_funcs) - return -ENOMEM; if (touchscreen_probe() < 0) return -ENOTSUP; + touchscreen_funcs = calloc(1, sizeof(hal_backend_touchscreen_funcs)); + if (!touchscreen_funcs) + return -ENOMEM; + touchscreen_funcs->get_state = touchscreen_get_state; touchscreen_funcs->set_state = touchscreen_set_state; |