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:
parent
b9fec1672c
commit
bf68dc9dce
|
@ -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;
|
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);
|
kfree(file_priv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue