From: Namrta Salonie Date: Thu, 19 Nov 2015 11:27:30 +0000 (+0530) Subject: drm/i915 : Fix to remove unnecsessary checks in postclose function. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bf68dc9dce6cf6a21300f5dac5bea8bbe1051e78;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/i915 : Fix to remove unnecsessary checks in postclose function. Found by static analysis tool. Signed-off-by: Namrta Salonie Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index ff7c851445ff..f8d8f8255a43 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -1296,8 +1296,6 @@ void i915_driver_postclose(struct drm_device *dev, struct drm_file *file) { struct drm_i915_file_private *file_priv = file->driver_priv; - if (file_priv && file_priv->bsd_ring) - file_priv->bsd_ring = NULL; kfree(file_priv); }