From 2301b57acfd367141e21ff722a000ac607db6434 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 14 May 2010 17:55:03 +0000 Subject: [PATCH] remove unnecessary stringshares SVN revision: 48865 --- legacy/eeze/src/lib/udev/eeze_udev_watch.c | 23 +++++----------------- 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/legacy/eeze/src/lib/udev/eeze_udev_watch.c b/legacy/eeze/src/lib/udev/eeze_udev_watch.c index a4c5ff93b9..9aafff8331 100644 --- a/legacy/eeze/src/lib/udev/eeze_udev_watch.c +++ b/legacy/eeze/src/lib/udev/eeze_udev_watch.c @@ -160,28 +160,15 @@ _get_syspath_from_watch(void *data, Ecore_Fd_Handler *fd_handler) default: break; } - test = eina_stringshare_add(udev_device_get_action(device)); + test = udev_device_get_action(device); if (!test) - { - udev_device_unref(device); - return 1; - } - ret = eina_stringshare_add(udev_device_get_syspath(device)); - if (!ret) - { - udev_device_unref(device); - eina_stringshare_del(test); - return 1; - } + goto error; - udev_device_unref(device); + ret = udev_device_get_syspath(device); + if (!ret) + goto error; (*func)(ret, test, sdata, watch); - eina_stringshare_del(test); - eina_stringshare_del(ret); - - return 1; - error: udev_device_unref(device); return 1;