elementary: Remove logically dead code

Coverity reports that this is logically dead code. As we check the
validity of 'model' above this function, then testing 'model' for
validity again in this expression is just logically dead.

Fixes Coverity CID1356617

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2016-07-21 12:58:03 -04:00
parent 30ab0a89be
commit a89186069e
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ _elm_fileselector_replace_model(Elm_Fileselector *fs, Elm_Fileselector_Data *sd,
if (model && path)
{
sd->model = model ? eo_ref(model) : NULL;
sd->model = eo_ref(model);
eina_stringshare_replace(&sd->path, path);
_monitoring_start(fs, sd, sd->model);
/* TODO: sub directory should be monitored for expand mode */