diff options
Diffstat (limited to 'shared/radeon_irq.c')
-rw-r--r-- | shared/radeon_irq.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/shared/radeon_irq.c b/shared/radeon_irq.c index 9199fbbf..c6bd90e5 100644 --- a/shared/radeon_irq.c +++ b/shared/radeon_irq.c @@ -249,8 +249,9 @@ void DRM(driver_irq_postinstall)( drm_device_t *dev ) { void DRM(driver_irq_uninstall)( drm_device_t *dev ) { drm_radeon_private_t *dev_priv = (drm_radeon_private_t *)dev->dev_private; - if ( dev_priv ) { - /* Disable *all* interrupts */ - RADEON_WRITE( RADEON_GEN_INT_CNTL, 0 ); - } + if (!dev_priv) + return; + + /* Disable *all* interrupts */ + RADEON_WRITE( RADEON_GEN_INT_CNTL, 0 ); } |