diff options
Diffstat (limited to 'shared/r128_irq.c')
| -rw-r--r-- | shared/r128_irq.c | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/shared/r128_irq.c b/shared/r128_irq.c index bfc30405..f3f84d8c 100644 --- a/shared/r128_irq.c +++ b/shared/r128_irq.c @@ -93,8 +93,9 @@ void r128_driver_irq_postinstall( drm_device_t *dev ) {  void r128_driver_irq_uninstall( drm_device_t *dev ) {    	drm_r128_private_t *dev_priv =   	   (drm_r128_private_t *)dev->dev_private; -	if ( dev_priv ) { -		/* Disable *all* interrupts */ -		R128_WRITE( R128_GEN_INT_CNTL, 0 ); -	} +	if (!dev_priv) +		return; + +	/* Disable *all* interrupts */ +	R128_WRITE( R128_GEN_INT_CNTL, 0 );  } | 
