]> Git Repo - qemu.git/commitdiff
hw/display/omap_lcdc: Delete unnecessary macro
authorPeter Maydell <[email protected]>
Mon, 15 Feb 2021 10:32:15 +0000 (10:32 +0000)
committerPeter Maydell <[email protected]>
Sat, 6 Mar 2021 13:30:38 +0000 (13:30 +0000)
The macro draw_line_func is used only once; just expand it.

Signed-off-by: Peter Maydell <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Message-id: 20210215103215[email protected]

hw/display/omap_lcdc.c

index 2db04fad2fcf729c550a15a32df2c032e18f588c..0ba42ef637c4aba835c4ca6eda06d829de5d13ef 100644 (file)
@@ -70,8 +70,6 @@ static void omap_lcd_interrupts(struct omap_lcd_panel_s *s)
     qemu_irq_lower(s->irq);
 }
 
-#define draw_line_func drawfn
-
 /*
  * 2-bit colour
  */
@@ -202,7 +200,7 @@ static void omap_update_display(void *opaque)
 {
     struct omap_lcd_panel_s *omap_lcd = (struct omap_lcd_panel_s *) opaque;
     DisplaySurface *surface;
-    draw_line_func draw_line;
+    drawfn draw_line;
     int size, height, first, last;
     int width, linesize, step, bpp, frame_offset;
     hwaddr frame_base;
This page took 0.025327 seconds and 4 git commands to generate.