qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 07/17] pc.c: remove unnecessary global variables, pi


From: Isaku Yamahata
Subject: [Qemu-devel] [PATCH 07/17] pc.c: remove unnecessary global variables, pit and ioapic.
Date: Fri, 17 Jul 2009 16:22:55 +0900

remove unnecessary global static variables, pit and ioapic.
They are unnecessarily global so make them local.

Signed-off-by: Isaku Yamahata <address@hidden>
---
 hw/pc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/pc.c b/hw/pc.c
index ac42c92..dc55030 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -59,8 +59,6 @@
 
 static fdctrl_t *floppy_controller;
 static RTCState *rtc_state;
-static PITState *pit;
-static IOAPICState *ioapic;
 
 typedef struct rom_reset_data {
     uint8_t *data;
@@ -1144,6 +1142,8 @@ static void pc_init1(ram_addr_t ram_size,
     int using_vga = cirrus_vga_enabled || std_vga_enabled || vmsvga_enabled;
     void *fw_cfg;
     const char *virtio_blk_name, *virtio_console_name;
+    PITState *pit;
+    IOAPICState *ioapic = NULL;
 
     if (ram_size >= 0xe0000000 ) {
         above_4g_mem_size = ram_size - 0xe0000000;
-- 
1.6.0.2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]