spinner: Remove unnecessary temporary variable. 61/46961/3 submit/tizen/20150831.063703
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Mon, 17 Aug 2015 15:20:02 +0000 (00:20 +0900)
committerJaeun Choi <jaeun12.choi@samsung.com>
Thu, 27 Aug 2015 11:07:03 +0000 (04:07 -0700)
Follow elm_layout_theme_set usage convention.

Change-Id: I738b0c0fd56a4e6e898790cff71bea154ee7a3d0
Origin: upstream

src/lib/elm_spinner.c

index f9e98f0..541bd72 100644 (file)
@@ -1090,10 +1090,9 @@ EOLIAN static Eina_Bool
 _elm_spinner_elm_widget_theme_apply(Eo *obj, Elm_Spinner_Data *sd)
 {
    ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE);
-   Eina_Bool int_ret = elm_layout_theme_set(obj, "spinner", "base",
-                              elm_widget_style_get(obj));
 
-   if (!int_ret) CRI("Failed to set layout!");
+   if (!elm_layout_theme_set(obj, "spinner", "base", elm_widget_style_get(obj)))
+     CRI("Failed to set layout!");
 
    if (edje_object_part_exists(wd->resize_obj, "elm.swallow.dec_button"))
      sd->button_layout = EINA_TRUE;
@@ -1136,7 +1135,7 @@ _elm_spinner_elm_widget_theme_apply(Eo *obj, Elm_Spinner_Data *sd)
      _access_spinner_register(obj, EINA_TRUE);
 
    elm_layout_sizing_eval(obj);
-   return int_ret;
+   return EINA_TRUE;
 }
 
 static Eina_Bool _elm_spinner_smart_focus_next_enable = EINA_FALSE;