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.
This commit is contained in:
Jean Guyomarc'h 2016-10-28 23:20:14 +02:00
parent ff6bb81465
commit e86e741597
No known key found for this signature in database
GPG Key ID: 9BFD70B4662DC58C
1 changed files with 1 additions and 5 deletions

View File

@ -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) */