aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_drm2/ecore_drm2_device.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-01-05 12:28:36 -0600
committerDerek Foreman <derekf@osg.samsung.com>2018-01-05 12:28:36 -0600
commit0d845ce3aa88738e5313d81745f882e011333204 (patch)
tree3e15277a87b7710ea63198f8474fd869e66c4554 /src/lib/ecore_drm2/ecore_drm2_device.c
parentecore_drm2: Don't fail if there's no boot_vga device (diff)
downloadefl-0d845ce3aa88738e5313d81745f882e011333204.tar.gz
ecore_drm2: Remove pointless goto
This "out" label probably used to be the target of multiple gotos, but now it's just being used to jump over a single line of code.
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2_device.c')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_device.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c
index 67cfebbd8c..da35231ba2 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -161,11 +161,9 @@ cont:
if (found) break;
}
- if (!chosen_dev) goto out;
+ if (chosen_dev)
+ ret = eeze_udev_syspath_get_devpath(chosen_dev);
- ret = eeze_udev_syspath_get_devpath(chosen_dev);
-
-out:
EINA_LIST_FREE(devs, dev)
eina_stringshare_del(dev);