[PATCH weston 3/7] hmi-controller: remove dead assignments in add_launchers
Emre Ucan
eucan at de.adit-jv.com
Tue Mar 20 14:28:23 UTC 2018
assigned values of x, y, ret and layout_surface are
never read.
(Found by clang source code analyzer)
Signed-off-by: Emre Ucan <eucan at de.adit-jv.com>
---
ivi-shell/hmi-controller.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/ivi-shell/hmi-controller.c b/ivi-shell/hmi-controller.c
index b13936f..0e44df8 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));
--
2.7.4
More information about the wayland-devel
mailing list