aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vgasrc/atiext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vgasrc/atiext.c b/vgasrc/atiext.c
index b397522..a24b980 100644
--- a/vgasrc/atiext.c
+++ b/vgasrc/atiext.c
@@ -117,7 +117,7 @@ static inline u32 ati_read(u32 reg)
val = inl(io_addr + reg);
} else {
outl(reg, io_addr + MM_INDEX);
- reg = inl(io_addr + MM_DATA);
+ val = inl(io_addr + MM_DATA);
}
return val;
}