diff mbox

[V9,08/20] pc: make an unnecessary global variable, pit, local.

Message ID 1260261219-16103-9-git-send-email-yamahata@valinux.co.jp
State New
Headers show

Commit Message

Isaku Yamahata Dec. 8, 2009, 8:33 a.m. UTC
remove unnecessary global static variables, pit.
Make it local.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
---
 hw/pc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/hw/pc.c b/hw/pc.c
index fc7ee8a..c728486 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -66,7 +66,6 @@ 
 
 static fdctrl_t *floppy_controller;
 static RTCState *rtc_state;
-static PITState *pit;
 
 typedef struct isa_irq_state {
     qemu_irq *i8259;
@@ -1006,6 +1005,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;