提交 21386f86 编写于 作者: G Gustavo Padovan 提交者: Daniel Vetter

drm/i915: trivial: remove unneed set to NULL

At this point of the code the obj var is already NULL, so we don't
need to set it again to NULL.
Signed-off-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: NJani Nikula <jani.nikula@intel.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 1c14762d
...@@ -8307,7 +8307,6 @@ static int intel_crtc_cursor_set_obj(struct drm_crtc *crtc, ...@@ -8307,7 +8307,6 @@ static int intel_crtc_cursor_set_obj(struct drm_crtc *crtc,
if (!obj) { if (!obj) {
DRM_DEBUG_KMS("cursor off\n"); DRM_DEBUG_KMS("cursor off\n");
addr = 0; addr = 0;
obj = NULL;
mutex_lock(&dev->struct_mutex); mutex_lock(&dev->struct_mutex);
goto finish; goto finish;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册