changeset 36763:7ac80299454d

Remove pointless assignment and variable. A volatile read will/should not be optimized away regardless of whether the result is assigned to a dummy variable or not.
author reimar
date Sun, 16 Feb 2014 16:29:57 +0000
parents e788bcd9d49b
children b11dc6175323
files vidix/pm3_regs.h
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/pm3_regs.h	Sun Feb 16 15:44:36 2014 +0000
+++ b/vidix/pm3_regs.h	Sun Feb 16 16:29:57 2014 +0000
@@ -1079,8 +1079,7 @@
 
 #define RAMDAC_DELAY(x) do {					\
 	int delay = x;						\
-	unsigned char tmp;					\
-	while(delay--){tmp = READ_REG(PM3InFIFOSpace);};	\
+	while(delay--){READ_REG(PM3InFIFOSpace);};		\
 } while(0)
 
 #define SLOW_WRITE_REG(v,r)			\