diff options
Diffstat (limited to 'sys/dev/pci/drm/r128_state.c')
-rw-r--r-- | sys/dev/pci/drm/r128_state.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/pci/drm/r128_state.c b/sys/dev/pci/drm/r128_state.c index 11f8e152c37..47657c6f79c 100644 --- a/sys/dev/pci/drm/r128_state.c +++ b/sys/dev/pci/drm/r128_state.c @@ -1645,11 +1645,10 @@ int r128_getparam(struct drm_device *dev, void *data, struct drm_file *file_priv void r128_driver_preclose(struct drm_device * dev, struct drm_file *file_priv) { - if (dev->dev_private) { - drm_r128_private_t *dev_priv = dev->dev_private; - if (dev_priv->page_flipping) { - r128_do_cleanup_pageflip(dev); - } + drm_r128_private_t *dev_priv = dev->dev_private; + + if (dev_priv->page_flipping) { + r128_do_cleanup_pageflip(dev); } } |