drm/i915 : Fix to remove unnecsessary checks in postclose function.
authorNamrta Salonie <namrta.salonie@intel.com>
Thu, 19 Nov 2015 11:27:30 +0000 (16:57 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 19 Nov 2015 15:40:53 +0000 (16:40 +0100)
    Found by static analysis tool.

Signed-off-by: Namrta Salonie <namrta.salonie@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c

index ff7c851445ff21a2081da168b2f4cdada386db9d..f8d8f8255a43d545318ee61689a4e82344d5de79 100644 (file)
@@ -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);
 }