A Antonino A. Daplas #
Message details and related content
Remove more code that writes to cmap[16]. Signed-off-by: Antonino Daplas <adaplas@gmail.com> --- Petr Vandrovec wrote:
Antonino A. Daplas wrote:quoted
- the pseudo_palette is only 16 elements long. - do not write to the pseudo_palette if regno (array index) is more than 15 - remove code that writes to the 17th entry of the pseudo_palette Signed-off-by: Antonino Daplas <adaplas@gmail.com> --- Petr, Here's another attempt. Let me know if I missed anything.You did not run my grep, did you? matroxfb_cfb[48]_* in matroxfb_accel have loop:
Actually I did, but it grep'ed "everything". And I'm not too much of an
expert with grep.
Here's an incremental patch. Hopefully, this is the end of it
Tony
drivers/video/matrox/matroxfb_accel.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/video/matrox/matroxfb_accel.c b/drivers/video/matrox/matroxfb_accel.c
index 209fe69..3660d26 100644
--- a/drivers/video/matrox/matroxfb_accel.c
+++ b/drivers/video/matrox/matroxfb_accel.c@@ -91,7 +91,6 @@ static inline void matrox_cfb4_pal(u_int for (i = 0; i < 16; i++) { pal[i] = i * 0x11111111U; } - pal[i] = 0xFFFFFFFF; } static inline void matrox_cfb8_pal(u_int32_t* pal) {
@@ -100,7 +99,6 @@ static inline void matrox_cfb8_pal(u_int for (i = 0; i < 16; i++) { pal[i] = i * 0x01010101U; } - pal[i] = 0x0F0F0F0F; } static void matroxfb_copyarea(struct fb_info* info, const struct fb_copyarea* area); -------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/