qemu-trivial.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] qemu-ga: Remove unreachable code after g_error
@ 2012-09-01  7:34 Stefan Weil
  2012-09-03 16:49 ` [Qemu-trivial] [Qemu-devel] " Luiz Capitulino
  2012-09-22 15:25 ` Stefan Hajnoczi
  0 siblings, 2 replies; 5+ messages in thread
From: Stefan Weil @ 2012-09-01  7:34 UTC (permalink / raw)
  Cc: qemu-trivial, Stefan Weil, qemu-devel

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>
---
 qemu-ga.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/qemu-ga.c b/qemu-ga.c
index 7623079..b747470 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;
-- 
1.7.10



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

end of thread, other threads:[~2012-09-22 15:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-01  7:34 [Qemu-trivial] [PATCH] qemu-ga: Remove unreachable code after g_error Stefan Weil
2012-09-03 16:49 ` [Qemu-trivial] [Qemu-devel] " Luiz Capitulino
2012-09-03 17:02   ` Stefan Weil
2012-09-03 17:57     ` Luiz Capitulino
2012-09-22 15:25 ` Stefan Hajnoczi

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