path: root/src/lib/elementary
diff options
authorChris Michael <cp.michael@samsung.com>2016-07-21 12:53:13 -0400
committerChris Michael <cp.michael@samsung.com>2016-07-21 12:53:13 -0400
commit30ab0a89be3cfc601d2e93d8a165f2e38eaf907b (patch)
tree981e614ebe591039f2c268f38d7af1a787a67cfb /src/lib/elementary
parenteldbus: Check return value and error out if necessary (diff)
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>
Diffstat (limited to 'src/lib/elementary')
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_index.c b/src/lib/elementary/elm_index.c
index 665ea7f8ce..edc4abd2f2 100644
--- a/src/lib/elementary/elm_index.c
+++ b/src/lib/elementary/elm_index.c
@@ -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*