Cut & paste bug probably. Had no bad effect so far because the code doesn't read registers larger than 0x100.
Signed-off-by: Gerd Hoffmann kraxel@redhat.com --- vgasrc/atiext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vgasrc/atiext.c b/vgasrc/atiext.c index b3975226c478..a24b980638a9 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; }