ecore_drm2: Remove pointless goto
authorDerek Foreman <derekf@osg.samsung.com>
Fri, 5 Jan 2018 18:28:36 +0000 (12:28 -0600)
committerWonki Kim <wonki_.kim@samsung.com>
Wed, 10 Jan 2018 11:08:13 +0000 (20:08 +0900)
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.

src/lib/ecore_drm2/ecore_drm2_device.c

index 67cfebb..da35231 100644 (file)
@@ -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);