efreet icon cache creation binary - remove redundent check

found by PVS studio
This commit is contained in:
Carsten Haitzler 2017-07-31 11:41:10 +09:00
parent 0efb70e317
commit f4ce0d1b95
1 changed files with 2 additions and 2 deletions

View File

@ -929,9 +929,9 @@ main(int argc, char **argv)
icon_ef = eet_open(efreet_icon_cache_file(theme->theme.name.internal), EET_FILE_MODE_READ_WRITE);
if (!icon_ef) goto on_error_efreet;
icon_version = eet_data_read(icon_ef, efreet_version_edd(), EFREET_CACHE_VERSION);
if (theme->changed || !icon_version || (icon_version &&
if ((theme->changed) || (!icon_version) ||
((icon_version->major != EFREET_ICON_CACHE_MAJOR) ||
(icon_version->minor != EFREET_ICON_CACHE_MINOR))))
(icon_version->minor != EFREET_ICON_CACHE_MINOR)))
{
// delete old cache
eet_close(icon_ef);