drm/i915: trivial: remove unneed set to NULL
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Thu, 28 Aug 2014 17:40:06 +0000 (14:40 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 3 Sep 2014 09:04:57 +0000 (11:04 +0200)
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: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c

index e572ffa16a60c937ae14f294a942f64262f9467f..ebb480ff35fb7ccda2f816e03635550b31d147cb 100644 (file)
@@ -8307,7 +8307,6 @@ static int intel_crtc_cursor_set_obj(struct drm_crtc *crtc,
        if (!obj) {
                DRM_DEBUG_KMS("cursor off\n");
                addr = 0;
-               obj = NULL;
                mutex_lock(&dev->struct_mutex);
                goto finish;
        }