elementary: Remove logically dead code

Coverity reports that this is logically dead code. As eo_item has been
dereferenced on all paths leading here, and it is also set above, then
it cannot be NULL at this point, thus this check is logically dead.

Fixes Covierty CID1355585

@fix

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

View File

@ -1544,8 +1544,7 @@ _elm_index_item_sorted_insert(Eo *obj, Elm_Index_Data *sd, const char *letter, E
elm_interface_atspi_accessible_children_changed_added_signal_emit(obj, eo_item);
}
if (!eo_item) return NULL;
else return eo_item;
return eo_item;
}
EOLIAN static Elm_Object_Item*