From dad240d81ea5fa946d494467e677c6e1a3a12fd7 Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Mon, 18 Apr 2011 22:04:00 +0200 Subject: savage: Fix logic in waitHSync Bit-masking the result of a boolean negation seems pointless, so I guess this is what was intended: Only look at bit 0 of the inStatus result. Signed-off-by: Tormod Volden Reviewed-by: Matt Turner Reviewed-by: Alex Deucher --- src/savage_cursor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/savage_cursor.c b/src/savage_cursor.c index 4d193eb..6364293 100644 --- a/src/savage_cursor.c +++ b/src/savage_cursor.c @@ -67,8 +67,8 @@ static void SavageSetCursorColors(ScrnInfoPtr pScrn, int bg, int fg); #define waitHSync(n) { \ int num = n; \ while (num--) { \ - while ((inStatus1()) & 0x01){};\ - while (!(inStatus1()) & 0x01){};\ + while (inStatus1() & 0x01){};\ + while (!(inStatus1() & 0x01)){};\ } \ } #define MAX_CURS 64 -- cgit v1.2.3