diff mbox

[1/2] cleanup, Remove duplicated code

Message ID 1326359135-425-1-git-send-email-laijs@cn.fujitsu.com
State New
Headers show

Commit Message

Lai Jiangshan Jan. 12, 2012, 9:05 a.m. UTC
These two blocks of code are exactly the same, remove one.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
---
 cpus.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

Comments

Anthony Liguori Jan. 12, 2012, 4:53 p.m. UTC | #1
On 01/12/2012 03:05 AM, Lai Jiangshan wrote:
> These two blocks of code are exactly the same, remove one.
>
> Signed-off-by: Lai Jiangshan<laijs@cn.fujitsu.com>

Applied all.  Thanks.

Regards,

Anthony Liguori

> ---
>   cpus.c |    8 --------
>   1 files changed, 0 insertions(+), 8 deletions(-)
>
> diff --git a/cpus.c b/cpus.c
> index 857f96f..f45a438 100644
> --- a/cpus.c
> +++ b/cpus.c
> @@ -565,14 +565,6 @@ static void qemu_kvm_init_cpu_signals(CPUState *env)
>           fprintf(stderr, "kvm_set_signal_mask: %s\n", strerror(-r));
>           exit(1);
>       }
> -
> -    sigdelset(&set, SIG_IPI);
> -    sigdelset(&set, SIGBUS);
> -    r = kvm_set_signal_mask(env,&set);
> -    if (r) {
> -        fprintf(stderr, "kvm_set_signal_mask: %s\n", strerror(-r));
> -        exit(1);
> -    }
>   }
>
>   static void qemu_tcg_init_cpu_signals(void)
diff mbox

Patch

diff --git a/cpus.c b/cpus.c
index 857f96f..f45a438 100644
--- a/cpus.c
+++ b/cpus.c
@@ -565,14 +565,6 @@  static void qemu_kvm_init_cpu_signals(CPUState *env)
         fprintf(stderr, "kvm_set_signal_mask: %s\n", strerror(-r));
         exit(1);
     }
-
-    sigdelset(&set, SIG_IPI);
-    sigdelset(&set, SIGBUS);
-    r = kvm_set_signal_mask(env, &set);
-    if (r) {
-        fprintf(stderr, "kvm_set_signal_mask: %s\n", strerror(-r));
-        exit(1);
-    }
 }
 
 static void qemu_tcg_init_cpu_signals(void)