From patchwork Fri Dec 4 05:50:54 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [V8,07/18] pc: make an unnecessary global variable, pit, local. Date: Thu, 03 Dec 2009 19:50:54 -0000 From: Isaku Yamahata X-Patchwork-Id: 40306 Message-Id: <1259905865-25295-8-git-send-email-yamahata@valinux.co.jp> To: qemu-devel@nongnu.org Cc: yamahata@valinux.co.jp remove unnecessary global static variables, pit. Make it local. Signed-off-by: Isaku Yamahata --- hw/pc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index b18efc5..2d9de6c 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;