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 коммит произвёл Daniel Vetter
Родитель b9fec1672c
Коммит bf68dc9dce
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

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