diff --git a/clutter/clutter-animation.c b/clutter/clutter-animation.c index 01ba75979..2e3958ba6 100644 --- a/clutter/clutter-animation.c +++ b/clutter/clutter-animation.c @@ -594,8 +594,7 @@ clutter_animation_validate_bind (ClutterAnimation *animation, return NULL; } - if (!g_value_type_compatible (G_PARAM_SPEC_VALUE_TYPE (pspec), - argtype)) + if (!g_value_type_compatible (G_PARAM_SPEC_VALUE_TYPE (pspec), argtype)) { g_warning ("Cannot bind property '%s': the interval value of " "type '%s' is not compatible with the property value " @@ -605,6 +604,7 @@ clutter_animation_validate_bind (ClutterAnimation *animation, g_type_name (G_PARAM_SPEC_VALUE_TYPE (pspec))); return NULL; } + return pspec; } @@ -681,8 +681,7 @@ clutter_animation_bind (ClutterAnimation *animation, priv = animation->priv; type = G_VALUE_TYPE (final); - pspec = clutter_animation_validate_bind (animation, property_name, - type); + pspec = clutter_animation_validate_bind (animation, property_name, type); if (pspec == NULL) return NULL; diff --git a/clutter/clutter-script-parser.c b/clutter/clutter-script-parser.c index ebe84fa93..980d45412 100644 --- a/clutter/clutter-script-parser.c +++ b/clutter/clutter-script-parser.c @@ -785,8 +785,7 @@ clutter_script_resolve_animation_mode (const gchar *name) return animation_modes[i].mode; } - if (clutter_script_enum_from_string (CLUTTER_TYPE_ANIMATION_MODE, - name, &res)) + if (clutter_script_enum_from_string (CLUTTER_TYPE_ANIMATION_MODE, name, &res)) return res; g_warning ("Unable to find the animation mode '%s'", name);