qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 06/24] Remove local ram_size that hides global one
@ 2012-11-13 12:11 Christian Borntraeger
  2012-11-19 13:14 ` Alexander Graf
  0 siblings, 1 reply; 7+ messages in thread
From: Christian Borntraeger @ 2012-11-13 12:11 UTC (permalink / raw)
  To: agraf; +Cc: Christian Borntraeger, Heinz Graalfs, qemu-devel

From: Heinz Graalfs <graalfs@linux.vnet.ibm.com>

The global variable 'ram_size' is hidden by the local variable
declaration in s390_init()

Signed-off-by: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
---
 hw/s390-virtio.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/hw/s390-virtio.c b/hw/s390-virtio.c
index ebec844..78477af 100644
--- a/hw/s390-virtio.c
+++ b/hw/s390-virtio.c
@@ -155,7 +155,6 @@ unsigned s390_del_running_cpu(CPUS390XState *env)
 static void s390_init(QEMUMachineInitArgs *args)
 {
     ram_addr_t my_ram_size = args->ram_size;
-    ram_addr_t ram_size = args->ram_size;
     const char *cpu_model = args->cpu_model;
     const char *kernel_filename = args->kernel_filename;
     const char *kernel_cmdline = args->kernel_cmdline;
-- 
1.7.10.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-11-20  9:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-13 12:11 [Qemu-devel] [PATCH 06/24] Remove local ram_size that hides global one Christian Borntraeger
2012-11-19 13:14 ` Alexander Graf
2012-11-19 13:20   ` Peter Maydell
2012-11-19 13:35   ` Eduardo Habkost
2012-11-19 13:46     ` Alexander Graf
2012-11-20  9:28       ` [Qemu-devel] [PATCH 1/1] s390: Fix ram_size updating in machine init Christian Borntraeger
2012-11-20  9:31         ` Alexander Graf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).