summaryrefslogtreecommitdiff
path: root/qemu-ga.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-09-01 09:34:15 +0200
committerStefan Hajnoczi <stefanha@gmail.com>2012-09-23 07:11:28 +0100
commitb548828862d3bf7214b7ef9cb361356b153b89c9 (patch)
tree498ddae09eba26af67b76f62491dc03ceddef325 /qemu-ga.c
parent2e84849aa2cc7f220d3b3668f5f7e3c57bb1b590 (diff)
downloadqemu-b548828862d3bf7214b7ef9cb361356b153b89c9.tar.gz
qemu-b548828862d3bf7214b7ef9cb361356b153b89c9.tar.bz2
qemu-b548828862d3bf7214b7ef9cb361356b153b89c9.zip
qemu-ga: Remove unreachable code after g_error
Report from smatch: qemu-ga.c:117 register_signal_handlers(11) info: ignoring unreachable code. qemu-ga.c:122 register_signal_handlers(16) info: ignoring unreachable code. g_error calls abort which terminates the program. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Diffstat (limited to 'qemu-ga.c')
-rw-r--r--qemu-ga.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/qemu-ga.c b/qemu-ga.c
index 7623079887..b7474708f0 100644
--- a/qemu-ga.c
+++ b/qemu-ga.c
@@ -114,12 +114,10 @@ static gboolean register_signal_handlers(void)
ret = sigaction(SIGINT, &sigact, NULL);
if (ret == -1) {
g_error("error configuring signal handler: %s", strerror(errno));
- return false;
}
ret = sigaction(SIGTERM, &sigact, NULL);
if (ret == -1) {
g_error("error configuring signal handler: %s", strerror(errno));
- return false;
}
return true;