qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Remove dead code
@ 2009-06-03  9:06 Amit Shah
  0 siblings, 0 replies; 3+ messages in thread
From: Amit Shah @ 2009-06-03  9:06 UTC (permalink / raw)
  To: anthony; +Cc: Amit Shah, qemu-devel

vl.c contains some dead code that initialises a 'label' string with the name
of the char device being initialised. This is unused.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
---
 vl.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/vl.c b/vl.c
index f8c0d00..1d1ea64 100644
--- a/vl.c
+++ b/vl.c
@@ -6007,8 +6007,6 @@ int main(int argc, char **argv, char **envp)
     for(i = 0; i < MAX_SERIAL_PORTS; i++) {
         const char *devname = serial_devices[i];
         if (devname && strcmp(devname, "none")) {
-            char label[32];
-            snprintf(label, sizeof(label), "serial%d", i);
             if (strstart(devname, "vc", 0))
                 qemu_chr_printf(serial_hds[i], "serial%d console\r\n", i);
         }
@@ -6017,8 +6015,6 @@ int main(int argc, char **argv, char **envp)
     for(i = 0; i < MAX_PARALLEL_PORTS; i++) {
         const char *devname = parallel_devices[i];
         if (devname && strcmp(devname, "none")) {
-            char label[32];
-            snprintf(label, sizeof(label), "parallel%d", i);
             if (strstart(devname, "vc", 0))
                 qemu_chr_printf(parallel_hds[i], "parallel%d console\r\n", i);
         }
@@ -6027,8 +6023,6 @@ int main(int argc, char **argv, char **envp)
     for(i = 0; i < MAX_VIRTIO_CONSOLES; i++) {
         const char *devname = virtio_consoles[i];
         if (virtcon_hds[i] && devname) {
-            char label[32];
-            snprintf(label, sizeof(label), "virtcon%d", i);
             if (strstart(devname, "vc", 0))
                 qemu_chr_printf(virtcon_hds[i], "virtio console%d\r\n", i);
         }
-- 
1.6.0.6

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

* [Qemu-devel] [patch] remove dead code
@ 2010-07-23  5:57 Jun Koi
  2010-07-24 13:09 ` Edgar E. Iglesias
  0 siblings, 1 reply; 3+ messages in thread
From: Jun Koi @ 2010-07-23  5:57 UTC (permalink / raw)
  To: qemu-devel

this patch removes unused function cpu_restore_state_copy().

Signed-off-by: Jun Koi <junkoi2004@gmail.com>




diff --git a/exec-all.h b/exec-all.h
index 58b5575..3a53fe6 100644
--- a/exec-all.h
+++ b/exec-all.h
@@ -86,9 +86,6 @@ int cpu_gen_code(CPUState *env, struct TranslationBlock *tb,
 int cpu_restore_state(struct TranslationBlock *tb,
                       CPUState *env, unsigned long searched_pc,
                       void *puc);
-int cpu_restore_state_copy(struct TranslationBlock *tb,
-                           CPUState *env, unsigned long searched_pc,
-                           void *puc);
 void cpu_resume_from_signal(CPUState *env1, void *puc);
 void cpu_io_recompile(CPUState *env, void *retaddr);
 TranslationBlock *tb_gen_code(CPUState *env,

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

* Re: [Qemu-devel] [patch] remove dead code
  2010-07-23  5:57 [Qemu-devel] [patch] remove dead code Jun Koi
@ 2010-07-24 13:09 ` Edgar E. Iglesias
  0 siblings, 0 replies; 3+ messages in thread
From: Edgar E. Iglesias @ 2010-07-24 13:09 UTC (permalink / raw)
  To: Jun Koi; +Cc: qemu-devel

On Fri, Jul 23, 2010 at 02:57:40PM +0900, Jun Koi wrote:
> this patch removes unused function cpu_restore_state_copy().
> 
> Signed-off-by: Jun Koi <junkoi2004@gmail.com>

Applied, thanks.


> 
> diff --git a/exec-all.h b/exec-all.h
> index 58b5575..3a53fe6 100644
> --- a/exec-all.h
> +++ b/exec-all.h
> @@ -86,9 +86,6 @@ int cpu_gen_code(CPUState *env, struct TranslationBlock *tb,
>  int cpu_restore_state(struct TranslationBlock *tb,
>                        CPUState *env, unsigned long searched_pc,
>                        void *puc);
> -int cpu_restore_state_copy(struct TranslationBlock *tb,
> -                           CPUState *env, unsigned long searched_pc,
> -                           void *puc);
>  void cpu_resume_from_signal(CPUState *env1, void *puc);
>  void cpu_io_recompile(CPUState *env, void *retaddr);
>  TranslationBlock *tb_gen_code(CPUState *env,
> 

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

end of thread, other threads:[~2010-07-24 13:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-23  5:57 [Qemu-devel] [patch] remove dead code Jun Koi
2010-07-24 13:09 ` Edgar E. Iglesias
  -- strict thread matches above, loose matches on Subject: below --
2009-06-03  9:06 [Qemu-devel] [PATCH] Remove " Amit Shah

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).