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>
This commit is contained in:
Namrta Salonie 2015-11-19 16:57:30 +05:30 committed by Daniel Vetter
parent b9fec1672c
commit bf68dc9dce
1 changed files with 0 additions and 2 deletions

View 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);
}