提交 178e32c2 编写于 作者: V Ville Syrjälä

drm/atomic: Remove pointless private object NULL state check

We will never add private objects with a NULL state into the atomic
state, hence checking for that is pointless.

Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170712155102.26276-2-ville.syrjala@linux.intel.com
上级 56a91c49
...@@ -1013,8 +1013,7 @@ drm_atomic_get_private_obj_state(struct drm_atomic_state *state, void *obj, ...@@ -1013,8 +1013,7 @@ drm_atomic_get_private_obj_state(struct drm_atomic_state *state, void *obj,
struct __drm_private_objs_state *arr; struct __drm_private_objs_state *arr;
for (i = 0; i < state->num_private_objs; i++) for (i = 0; i < state->num_private_objs; i++)
if (obj == state->private_objs[i].obj && if (obj == state->private_objs[i].obj)
state->private_objs[i].obj_state)
return state->private_objs[i].obj_state; return state->private_objs[i].obj_state;
num_objs = state->num_private_objs + 1; num_objs = state->num_private_objs + 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册