fix(style): remove useless null pointer judgment
@@ -327,8 +327,6 @@ void _lv_obj_style_create_transition(lv_obj_t * obj, lv_part_t part, lv_state_t
if(tr == NULL) return;
tr->start_value = v1;
tr->end_value = v2;
-
- if(tr) {
tr->obj = obj;
tr->prop = tr_dsc->prop;
tr->selector = part;
@@ -349,7 +347,6 @@ void _lv_obj_style_create_transition(lv_obj_t * obj, lv_part_t part, lv_state_t
#endif
lv_anim_start(&a);
}
-}
lv_style_value_t _lv_obj_style_apply_color_filter(const lv_obj_t * obj, uint32_t part, lv_style_value_t v)
