diff options
author | Jes Sorensen <jes@sgi.com> | 2008-09-26 15:03:10 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-09-27 13:50:55 +0300 |
commit | 0423d72165cdf8ae98132621429bc1bb911f3a55 (patch) | |
tree | a41a85191e9141f6bb055868fc84a49adc32a517 | |
parent | f063a7cc9b4f514084495ffbfd1b67d21de9e308 (diff) |
Ia64: stop passing in global variable as argument to cmos_init()
There is no reason to pass in global variable smp_cpus to cmos_init()
which then references it as a local variable of the same name 'smp_cpus'.
Signed-off-by: Jes Sorensen <jes@sgi.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | hw/ipf.c | 5 | ||||
-rw-r--r-- | hw/pc.c | 6 |
2 files changed, 4 insertions, 7 deletions
@@ -179,8 +179,7 @@ static int boot_device2nibble(char boot_device) /* hd_table must contain 4 block drivers */ static void cmos_init(ram_addr_t ram_size, ram_addr_t above_4g_mem_size, - const char *boot_device, BlockDriverState **hd_table, - int smp_cpus) + const char *boot_device, BlockDriverState **hd_table) { RTCState *s = rtc_state; int nbds, bds[3] = { 0, }; @@ -591,7 +590,7 @@ static void ipf_init1(ram_addr_t ram_size, int vga_ram_size, } floppy_controller = fdctrl_init(i8259[6], 2, 0, 0x3f0, fd); - cmos_init(ram_size, above_4g_mem_size, boot_device, hd, smp_cpus); + cmos_init(ram_size, above_4g_mem_size, boot_device, hd); if (pci_enabled && usb_enabled) { usb_uhci_piix3_init(pci_bus, piix3_devfn + 2); @@ -228,8 +228,7 @@ static int pc_boot_set(void *opaque, const char *boot_device) /* hd_table must contain 4 block drivers */ static void cmos_init(ram_addr_t ram_size, ram_addr_t above_4g_mem_size, - const char *boot_device, BlockDriverState **hd_table, - int smp_cpus) + const char *boot_device, BlockDriverState **hd_table) { RTCState *s = rtc_state; int nbds, bds[3] = { 0, }; @@ -1093,8 +1092,7 @@ static void pc_init1(ram_addr_t ram_size, int vga_ram_size, } floppy_controller = fdctrl_init(i8259[6], 2, 0, 0x3f0, fd); - cmos_init(below_4g_mem_size, above_4g_mem_size, boot_device, hd, - smp_cpus); + cmos_init(below_4g_mem_size, above_4g_mem_size, boot_device, hd); if (pci_enabled && usb_enabled) { usb_uhci_piix3_init(pci_bus, piix3_devfn + 2); |