summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmre Ucan <eucan@de.adit-jv.com>2018-03-20 15:28:23 +0100
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2018-03-28 13:09:50 +0300
commit16ac6a0f9d084279758c55a87f5d8e3435a9e69b (patch)
tree2a8c6f60881f5f0348c0ccf99e5673fa625697e8
parentff449f5ab13e465b497a059f5718d6c8037dec87 (diff)
downloadweston-16ac6a0f9d084279758c55a87f5d8e3435a9e69b.tar.gz
hmi-controller: remove dead assignments in add_launchers
assigned values of x, y, ret and layout_surface are never read. (Found by clang source code analyzer) Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-rw-r--r--ivi-shell/hmi-controller.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ivi-shell/hmi-controller.c b/ivi-shell/hmi-controller.c
index b13936f5..0e44df88 100644
--- a/ivi-shell/hmi-controller.c
+++ b/ivi-shell/hmi-controller.c
@@ -1184,10 +1184,6 @@ ivi_hmi_controller_add_launchers(struct hmi_controller *hmi_ctrl,
compare_launcher_info);
wl_array_for_each(data, &launchers) {
- x = 0;
- y = 0;
- ret = 0;
- layout_surface = NULL;
add_surface_id = wl_array_add(&hmi_ctrl->ui_widgets,
sizeof(*add_surface_id));