qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH V10 08/27] pc: make an unnecessary global variable,


From: Isaku Yamahata
Subject: [Qemu-devel] [PATCH V10 08/27] pc: make an unnecessary global variable, pit, local.
Date: Thu, 24 Dec 2009 17:09:01 +0900

remove unnecessary global static variables, pit.
Make it local.

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

diff --git a/hw/pc.c b/hw/pc.c
index 00f4efa..93d0ce4 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;
@@ -1008,6 +1007,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;
-- 
1.6.5.4





reply via email to

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