Blame 0217-qemu-ga-Remove-unreachable-code-after-g_error.patch

5544c1
From 631ea4153ed0e1dc8688c463e0924b0dd8dc7ea5 Mon Sep 17 00:00:00 2001
5544c1
From: Stefan Weil <sw@weilnetz.de>
5544c1
Date: Sat, 1 Sep 2012 09:34:15 +0200
5544c1
Subject: [PATCH] qemu-ga: Remove unreachable code after g_error
5544c1
5544c1
Report from smatch:
5544c1
qemu-ga.c:117 register_signal_handlers(11) info: ignoring unreachable code.
5544c1
qemu-ga.c:122 register_signal_handlers(16) info: ignoring unreachable code.
5544c1
5544c1
g_error calls abort which terminates the program.
5544c1
5544c1
Signed-off-by: Stefan Weil <sw@weilnetz.de>
5544c1
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
5544c1
(cherry picked from commit b548828862d3bf7214b7ef9cb361356b153b89c9)
5544c1
5544c1
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
5544c1
---
5544c1
 qemu-ga.c | 2 --
5544c1
 1 file changed, 2 deletions(-)
5544c1
5544c1
diff --git a/qemu-ga.c b/qemu-ga.c
5544c1
index 7623079..b747470 100644
5544c1
--- a/qemu-ga.c
5544c1
+++ b/qemu-ga.c
5544c1
@@ -114,12 +114,10 @@ static gboolean register_signal_handlers(void)
5544c1
     ret = sigaction(SIGINT, &sigact, NULL);
5544c1
     if (ret == -1) {
5544c1
         g_error("error configuring signal handler: %s", strerror(errno));
5544c1
-        return false;
5544c1
     }
5544c1
     ret = sigaction(SIGTERM, &sigact, NULL);
5544c1
     if (ret == -1) {
5544c1
         g_error("error configuring signal handler: %s", strerror(errno));
5544c1
-        return false;
5544c1
     }
5544c1
 
5544c1
     return true;
5544c1
-- 
5544c1
1.7.12.1
5544c1