summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorMichel Daenzer <michel@daenzer.net>2002-12-04 15:39:53 +0000
committerMichel Daenzer <michel@daenzer.net>2002-12-04 15:39:53 +0000
commit85025d4f2ad25258fb7678395b8c7ce1be1f0063 (patch)
tree57d2ba992694b7de9f14d9059b44fc8dd3753bbe /shared-core
parent4acba63bb7045e6bf665580cf6cea111f0786f77 (diff)
further vertical blank interrupt cleanups: remove unused variable,
non-ambiguous variable names, don't express subtraction in unnecessarily complicated ways
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/mga_irq.c2
-rw-r--r--shared-core/r128_irq.c2
-rw-r--r--shared-core/radeon_irq.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/shared-core/mga_irq.c b/shared-core/mga_irq.c
index 66236053..28e9a262 100644
--- a/shared-core/mga_irq.c
+++ b/shared-core/mga_irq.c
@@ -65,7 +65,7 @@ int mga_vblank_wait(drm_device_t *dev, unsigned int *sequence)
*/
DRM_WAIT_ON( ret, dev->vbl_queue, 3*DRM_HZ,
( ( ( cur_vblank = atomic_read(&dev->vbl_received ) )
- + ~*sequence + 1 ) <= (1<<23) ) );
+ - *sequence ) <= (1<<23) ) );
*sequence = cur_vblank;
diff --git a/shared-core/r128_irq.c b/shared-core/r128_irq.c
index 8dfee07e..bfc30405 100644
--- a/shared-core/r128_irq.c
+++ b/shared-core/r128_irq.c
@@ -65,7 +65,7 @@ int DRM(vblank_wait)(drm_device_t *dev, unsigned int *sequence)
*/
DRM_WAIT_ON( ret, dev->vbl_queue, 3*DRM_HZ,
( ( ( cur_vblank = atomic_read(&dev->vbl_received ) )
- + ~*sequence + 1 ) <= (1<<23) ) );
+ - *sequence ) <= (1<<23) ) );
*sequence = cur_vblank;
diff --git a/shared-core/radeon_irq.c b/shared-core/radeon_irq.c
index e2182ff7..c5cd61c5 100644
--- a/shared-core/radeon_irq.c
+++ b/shared-core/radeon_irq.c
@@ -159,7 +159,7 @@ int DRM(vblank_wait)(drm_device_t *dev, unsigned int *sequence)
*/
DRM_WAIT_ON( ret, dev->vbl_queue, 3*DRM_HZ,
( ( ( cur_vblank = atomic_read(&dev->vbl_received ) )
- + ~*sequence + 1 ) <= (1<<23) ) );
+ - *sequence ) <= (1<<23) ) );
*sequence = cur_vblank;