From: Gerd Hoffmann Date: Mon, 24 Jun 2019 10:09:31 +0000 (+0200) Subject: ati-vga: fix ati_read() X-Git-Tag: rel-1.13.0~32 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=136e2612bd48ef06562625f15259fbacf7bcf66f;p=seabios.git ati-vga: fix ati_read() 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 --- 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; }