From: lucas Date: Fri, 30 Apr 2010 15:10:25 +0000 (+0000) Subject: Use proper error handling functions X-Git-Tag: 2.0_alpha~43^2~209 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98fc10320e9f09a837c095d06fd9e2799cd446c8;p=framework%2Fuifw%2Fedbus.git Use proper error handling functions git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/e_dbus@48479 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/connman/e_connman_element.c b/src/lib/connman/e_connman_element.c index 195486f..940ea20 100644 --- a/src/lib/connman/e_connman_element.c +++ b/src/lib/connman/e_connman_element.c @@ -131,17 +131,8 @@ void e_connman_element_listener_add(E_Connman_Element *element, void (*cb)(void *data, const E_Connman_Element *element), const void *data, void (*free_data)(void *data)) { E_Connman_Element_Listener *l; - - if (!element) - { - ERR("safety check failed: element == NULL"); - goto error; - } - if (!cb) - { - ERR("safety check failed: cb == NULL"); - goto error; - } + EINA_SAFETY_ON_FALSE_GOTO(element, error); + EINA_SAFETY_ON_FALSE_GOTO(cb, error); l = malloc(sizeof(*l)); if (!l)