From patchwork Wed Dec 19 12:33:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [03/34] migration: remove double call to migrate_fd_close Date: Wed, 19 Dec 2012 02:33:26 -0000 From: Juan Quintela X-Patchwork-Id: 207382 Message-Id: <1355920437-29882-4-git-send-email-quintela@redhat.com> To: qemu-devel@nongnu.org Cc: Paolo Bonzini From: Paolo Bonzini The call in buffered_close is enough, because buffered_close is called already by migrate_fd_cleanup. Signed-off-by: Paolo Bonzini Signed-off-by: Juan Quintela --- migration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration.c b/migration.c index 73ce170..bde4956 100644 --- a/migration.c +++ b/migration.c @@ -272,7 +272,7 @@ static int migrate_fd_cleanup(MigrationState *s) s->file = NULL; } - migrate_fd_close(s); + assert(s->fd == -1); return ret; }