Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 340e01248478ba8b78a6d4d1809b1eff > files > 561

kvm-83-270.el5_11.src.rpm

From d9b0ed7c2e752c4d3d021bda330a00ee304f1329 Mon Sep 17 00:00:00 2001
From: Eduardo Habkost <ehabkost@redhat.com>
Date: Fri, 10 Sep 2010 19:32:11 -0300
Subject: [PATCH 1/3] kill bogus "return ret" on spawn_thread()

RH-Author: Eduardo Habkost <ehabkost@redhat.com>
Message-id: <1284147133-8755-2-git-send-email-ehabkost@redhat.com>
Patchwork-id: 11962
O-Subject: [RHEL5 qemu-kvm PATCH 1/3] kill bogus "return ret" on spawn_thread()
Bugzilla: 632707
RH-Acked-by: Juan Quintela <quintela@redhat.com>
RH-Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com>

The return statement doesn't exist upstream, it was a mistake on the backport
of upstream commit 8653c0158c23ec592f0041ab48b83d6cc6d152fe for bz#587049.

Bugzilla: 632707
Upstream status: not applicable

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 qemu/posix-aio-compat.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 qemu/posix-aio-compat.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/qemu/posix-aio-compat.c b/qemu/posix-aio-compat.c
index fbf1958..d361c6a 100644
--- a/qemu/posix-aio-compat.c
+++ b/qemu/posix-aio-compat.c
@@ -181,8 +181,6 @@ static void spawn_thread(void)
     thread_create(&thread_id, &attr, aio_thread, NULL);
     ret = pthread_attr_destroy(&attr);
     if (ret) die2 (ret, "pthread_attr_destroy");
-
-    return ret;
 }
 
 int qemu_paio_init(struct qemu_paioinit *aioinit)
-- 
1.6.5.5