From patchwork Fri May 14 07:29:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [07/26] pc: make an unnecessary global variable, pit, local. Date: Thu, 13 May 2010 21:29:05 -0000 From: Isaku Yamahata X-Patchwork-Id: 52569 Message-Id: <6c5672cb491904f258ccc775c23d4137692482a9.1273821065.git.yamahata@valinux.co.jp> To: qemu-devel@nongnu.org Cc: blauwirbel@gmail.com, yamahata@valinux.co.jp, kraxel@redhat.com remove unnecessary global static variables, pit. Make it local. Signed-off-by: Isaku Yamahata Acked-by: Gerd Hoffmann --- hw/pc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 691803f..b23684e 100644 --- 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;