Fix dead assignement.

This commit is contained in:
Michael Drake 2013-09-05 11:53:19 +01:00
parent 33c383357d
commit 84b90853b5
1 changed files with 2 additions and 5 deletions

View File

@ -1095,11 +1095,8 @@ static nserror hotlist_populate(const char *path)
/* Load hotlist file */
err = hotlist_load(path, &loaded);
/* Ignoring errors, since if there was an error, we want to generate
* the default hotlist anyway. */
if (loaded)
return NSERROR_OK;
if (loaded && err == NSERROR_OK)
return err;
/* Couldn't load hotlist, generate a default one */
err = hotlist_generate();