diff options
author | Namrta Salonie <namrta.salonie@intel.com> | 2015-11-19 16:57:30 +0530 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-11-19 16:40:53 +0100 |
commit | bf68dc9dce6cf6a21300f5dac5bea8bbe1051e78 (patch) | |
tree | 45f915948a8734ec1861a341f545a348910dbcc2 /drivers/gpu/drm/i915/i915_dma.c | |
parent | b9fec1672c671fb9f1f44efaaebececcaca57a0e (diff) | |
download | op-kernel-dev-bf68dc9dce6cf6a21300f5dac5bea8bbe1051e78.zip op-kernel-dev-bf68dc9dce6cf6a21300f5dac5bea8bbe1051e78.tar.gz |
drm/i915 : Fix to remove unnecsessary checks in postclose function.
Found by static analysis tool.
Signed-off-by: Namrta Salonie <namrta.salonie@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_dma.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index ff7c851..f8d8f82 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); } |