Remove unnecessary error logs 26/108426/2
authorDuna Oh <duna.oh@samsung.com>
Wed, 4 Jan 2017 09:04:26 +0000 (18:04 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Thu, 5 Jan 2017 02:07:30 +0000 (18:07 -0800)
Signed-off-by: Duna Oh <duna.oh@samsung.com>
Change-Id: I484095e521fee2ff8e68e8180b4a0f4451edb705

src/bin/e_policy_wl_display.c
src/bin/e_process.c

index d843496..25529f4 100644 (file)
@@ -47,7 +47,7 @@ _e_policy_display_dbus_init(void)
    if (eldbus_init() == 0) return EINA_FALSE;
 
    _e_display_dbus_info.conn = eldbus_connection_get(ELDBUS_CONNECTION_TYPE_SYSTEM);
-   EINA_SAFETY_ON_NULL_GOTO(_e_display_dbus_info.conn, failed);
+   if (!_e_display_dbus_info.conn) goto failed;
 
    eldbus_name_request(_e_display_dbus_info.conn,
                        BUS_NAME,
index 0da1a02..08fe011 100644 (file)
@@ -675,7 +675,7 @@ e_process_state_get(pid_t pid)
    if (pid <= 0) return E_PROCESS_STATE_UNKNOWN;
 
    pinfo = _e_process_find(_e_process_manager, pid);
-   EINA_SAFETY_ON_NULL_RETURN_VAL(pinfo, E_PROCESS_STATE_UNKNOWN);
+   if (!pinfo) return E_PROCESS_STATE_UNKNOWN;
 
    ELOGF("PROCESS", "GET STATE. PID:%d, state:%d", NULL, NULL, pid, pinfo->state);
    return pinfo->state;