elput: Remove unreachable code
authorChris Michael <cp.michael@samsung.com>
Mon, 20 Nov 2017 12:51:50 +0000 (07:51 -0500)
committerChris Michael <cp.michael@samsung.com>
Mon, 20 Nov 2017 12:51:50 +0000 (07:51 -0500)
As we are returning the evdev above, this block is unreachable so
remove it.

Fixes Coverity CID1382857

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/elput/elput_evdev.c

index 4943c45..91bbbb2 100644 (file)
@@ -1735,10 +1735,6 @@ _evdev_device_create(Elput_Seat *seat, struct libinput_device *device)
      }
 
    return edev;
-
-   eina_stringshare_del(edev->output_name);
-   free(edev);
-   return NULL;
 }
 
 void