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>
(cherry picked from commit b548828862
)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
parent
b79ba45af1
commit
907a34c9d7
|
@ -114,12 +114,10 @@ static gboolean register_signal_handlers(void)
|
||||||
ret = sigaction(SIGINT, &sigact, NULL);
|
ret = sigaction(SIGINT, &sigact, NULL);
|
||||||
if (ret == -1) {
|
if (ret == -1) {
|
||||||
g_error("error configuring signal handler: %s", strerror(errno));
|
g_error("error configuring signal handler: %s", strerror(errno));
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
ret = sigaction(SIGTERM, &sigact, NULL);
|
ret = sigaction(SIGTERM, &sigact, NULL);
|
||||||
if (ret == -1) {
|
if (ret == -1) {
|
||||||
g_error("error configuring signal handler: %s", strerror(errno));
|
g_error("error configuring signal handler: %s", strerror(errno));
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue