From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4Khw-00076O-1e for qemu-devel@nongnu.org; Tue, 20 Apr 2010 17:10:12 -0400 Received: from [140.186.70.92] (port=37217 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4Kho-00073N-AJ for qemu-devel@nongnu.org; Tue, 20 Apr 2010 17:10:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4Khm-0003u8-M5 for qemu-devel@nongnu.org; Tue, 20 Apr 2010 17:10:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28688) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4Khm-0003ty-9b for qemu-devel@nongnu.org; Tue, 20 Apr 2010 17:10:02 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3KLA1nD016763 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 20 Apr 2010 17:10:01 -0400 From: Luiz Capitulino Date: Tue, 20 Apr 2010 18:09:32 -0300 Message-Id: <1271797792-24571-3-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1271797792-24571-1-git-send-email-lcapitulino@redhat.com> References: <1271797792-24571-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 02/22] savevm: Don't check the return of qemu_fopen_bdrv() List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, armbru@redhat.com, quintela@redhat.com, kwolf@redhat.com It never fails. Signed-off-by: Luiz Capitulino --- savevm.c | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/savevm.c b/savevm.c index 086c92a..254f9fc 100644 --- a/savevm.c +++ b/savevm.c @@ -1705,10 +1705,6 @@ void do_savevm(Monitor *mon, const QDict *qdict) /* save the VM state */ f = qemu_fopen_bdrv(bs, 1); - if (!f) { - monitor_printf(mon, "Could not open VM state file\n"); - goto the_end; - } ret = qemu_savevm_state(mon, f); vm_state_size = qemu_ftell(f); qemu_fclose(f); @@ -1790,10 +1786,6 @@ int load_vmstate(const char *name) /* restore the VM state */ f = qemu_fopen_bdrv(bs, 0); - if (!f) { - error_report("Could not open VM state file"); - return -EINVAL; - } ret = qemu_loadvm_state(f); qemu_fclose(f); if (ret < 0) { -- 1.7.1.rc1.12.ga6018