From: Gustavo Padovan Date: Thu, 28 Aug 2014 17:40:06 +0000 (-0300) Subject: drm/i915: trivial: remove unneed set to NULL X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=21386f86c9af92fea4897e90c1671b3f0010e936;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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: Gustavo Padovan Reviewed-by: Jani Nikula Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index e572ffa16a60..ebb480ff35fb 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -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; }