qemu-devel
[Top][All Lists]
Advanced

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

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


From: Isaku Yamahata
Subject: [Qemu-devel] [PATCH 08/18] pc.c: remove unnecessary global variables, pit and ioapic..
Date: Thu, 18 Jun 2009 19:57:07 +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 b17a33f..16592e8 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -56,8 +56,6 @@
 
 static fdctrl_t *floppy_controller;
 static RTCState *rtc_state;
-static PITState *pit;
-static IOAPICState *ioapic;
 
 typedef struct rom_reset_data {
     uint8_t *data;
@@ -868,6 +866,8 @@ static void pc_init1(ram_addr_t ram_size,
     BlockDriverState *hd[MAX_IDE_BUS * MAX_IDE_DEVS];
     BlockDriverState *fd[MAX_FD];
     int using_vga = cirrus_vga_enabled || std_vga_enabled || vmsvga_enabled;
+    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]