path: root/src/lib/elementary
diff options
authorChris Michael <cp.michael@samsung.com>2016-07-21 12:58:03 -0400
committerChris Michael <cp.michael@samsung.com>2016-07-21 12:58:03 -0400
commita89186069ed816e6e6cf04aa8502dbfda4128707 (patch)
tree667474e4fb262bd1bca9296dd45eba7d54278690 /src/lib/elementary
parentelementary: Remove logically dead code (diff)
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>
Diffstat (limited to 'src/lib/elementary')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elc_fileselector.c b/src/lib/elementary/elc_fileselector.c
index 095ad3a5ea..566aa1e91d 100644
--- a/src/lib/elementary/elc_fileselector.c
+++ b/src/lib/elementary/elc_fileselector.c
@@ -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 */