mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
Remove unnecessary cast when using the cpu_[physical]_memory API
This commit was produced with the included Coccinelle script scripts/coccinelle/exec_rw_const. Suggested-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
@@ -91,9 +91,9 @@ static void omap_update_display(void *opaque)
|
||||
|
||||
frame_offset = 0;
|
||||
if (omap_lcd->plm != 2) {
|
||||
cpu_physical_memory_read(omap_lcd->dma->phys_framebuffer[
|
||||
omap_lcd->dma->current_frame],
|
||||
(void *)omap_lcd->palette, 0x200);
|
||||
cpu_physical_memory_read(
|
||||
omap_lcd->dma->phys_framebuffer[omap_lcd->dma->current_frame],
|
||||
omap_lcd->palette, 0x200);
|
||||
switch (omap_lcd->palette[0] >> 12 & 7) {
|
||||
case 3 ... 7:
|
||||
frame_offset += 0x200;
|
||||
@@ -244,8 +244,8 @@ static void omap_lcd_update(struct omap_lcd_panel_s *s) {
|
||||
|
||||
if (s->plm != 2 && !s->palette_done) {
|
||||
cpu_physical_memory_read(
|
||||
s->dma->phys_framebuffer[s->dma->current_frame],
|
||||
(void *)s->palette, 0x200);
|
||||
s->dma->phys_framebuffer[s->dma->current_frame],
|
||||
s->palette, 0x200);
|
||||
s->palette_done = 1;
|
||||
omap_lcd_interrupts(s);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user