mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06: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:
parent
d7ef71ef42
commit
0eeef0a4d3
5 changed files with 31 additions and 28 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue