From e86e741597f10ea435ef70bf902dfa2ac4af9d22 Mon Sep 17 00:00:00 2001 From: Jean Guyomarc'h Date: Fri, 28 Oct 2016 23:20:14 +0200 Subject: [PATCH] elm_icon: slightly clean-up code It is unnecessary to use an initialized variable on the stack to hold a new value and then immediately return it. --- src/lib/elementary/elm_icon.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib/elementary/elm_icon.c b/src/lib/elementary/elm_icon.c index 3e0904b..68c9e64 100644 --- a/src/lib/elementary/elm_icon.c +++ b/src/lib/elementary/elm_icon.c @@ -327,11 +327,7 @@ _elm_icon_efl_file_file_set(Eo *obj, Elm_Icon_Data *sd, const char *file, const ELM_SAFE_FREE(sd->stdicon, eina_stringshare_del); if (!sd->is_video) - { - Eina_Bool int_ret = EINA_FALSE; - int_ret = efl_file_set(efl_super(obj, MY_CLASS), file, key); - return int_ret; - } + return efl_file_set(efl_super(obj, MY_CLASS), file, key); /* parent's edje file setting path replicated here (we got .eet * extension, so bypassing it) */ -- 2.7.4