elm_config: Remove unnecessary NULL check.
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 26 Sep 2016 09:08:41 +0000 (18:08 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 26 Sep 2016 09:47:35 +0000 (18:47 +0900)
Since _config_load() is called and _elm_config is not initialized, NULL
check for _elm_config is not necessary.
The unnecessary NULL check causes false alarm because _elm_config is not
checked in other cases.

src/lib/elementary/elm_config.c

index 0fe52b8..4661611 100644 (file)
@@ -1877,7 +1877,7 @@ _config_flush_get(void)
    _elm_recache();
    _elm_clouseau_reload();
    _elm_config_key_binding_hash();
-   if (_elm_config) _elm_win_access(_elm_config->access_mode);
+   _elm_win_access(_elm_config->access_mode);
    ecore_event_add(ELM_EVENT_CONFIG_ALL_CHANGED, NULL, NULL, NULL);
 }