提交 bf68dc9d 编写于 作者: N Namrta Salonie 提交者: Daniel Vetter

drm/i915 : Fix to remove unnecsessary checks in postclose function.

    Found by static analysis tool.
Signed-off-by: NNamrta Salonie <namrta.salonie@intel.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 b9fec167
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册