]> git.proxmox.com Git - qemu.git/commitdiff
pc: make an unnecessary global variable, pit, local.
authorIsaku Yamahata <yamahata@valinux.co.jp>
Fri, 14 May 2010 07:29:05 +0000 (16:29 +0900)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 15 May 2010 15:37:37 +0000 (15:37 +0000)
remove unnecessary global static variables, pit.
Make it local.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/pc.c

diff --git a/hw/pc.c b/hw/pc.c
index 691803f11e3b89b97bb74dc6cc3f61674ed635f8..b23684e24f5a048280bc7c403a103f0de147bff4 100644 (file)
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -67,7 +67,6 @@
 
 static FDCtrl *floppy_controller;
 static RTCState *rtc_state;
-static PITState *pit;
 
 #define E820_NR_ENTRIES                16
 
@@ -835,6 +834,7 @@ static void pc_init1(ram_addr_t ram_size,
     DriveInfo *hd[MAX_IDE_BUS * MAX_IDE_DEVS];
     DriveInfo *fd[MAX_FD];
     void *fw_cfg;
+    PITState *pit;
 
     if (ram_size >= 0xe0000000 ) {
         above_4g_mem_size = ram_size - 0xe0000000;