Remove dead code 19/212819/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.023457 accepted/tizen/5.5/unified/mobile/hotfix/20201027.090946 accepted/tizen/5.5/unified/wearable/hotfix/20201027.113536 accepted/tizen/unified/20190904.110648 submit/tizen/20190829.054759 submit/tizen/20190904.052156 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185104 submit/tizen_5.5_wearable_hotfix/20201026.184304 tizen_5.5.m2_release
authorTomasz Swierczek <t.swierczek@samsung.com>
Tue, 27 Aug 2019 05:24:35 +0000 (07:24 +0200)
committerTomasz Swierczek <t.swierczek@samsung.com>
Tue, 27 Aug 2019 05:24:35 +0000 (07:24 +0200)
Change-Id: Ie4dfdc2c01e7800c962b5216d973c67782e86d6d

srcs/key_handler.c

index c198d19..d5e2eab 100644 (file)
@@ -649,16 +649,12 @@ int load_preloaded_app_deks()
 
        // close dek store dir fd not to affect the traverse_directory call
        closedir(dir);
-       dir = NULL;
 
        ret = traverse_directory(dek_store_path, _entry_callback_load_preloaded_adeks);
        if (ret != WAE_ERROR_NONE)
                WAE_SLOGE("Fail when traverse dek store directory. ret(%d)", ret);
 
 out:
-       if (dir != NULL)
-               closedir(dir);
-
        _remove_directory(dek_store_path);
 
        return ret;