From patchwork Tue May 28 10:27:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 246820 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D74F32C030E for ; Tue, 28 May 2013 20:28:36 +1000 (EST) Received: from localhost ([::1]:54550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhH8s-0000co-OQ for incoming@patchwork.ozlabs.org; Tue, 28 May 2013 06:28:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhH8Q-0000Uj-3e for qemu-devel@nongnu.org; Tue, 28 May 2013 06:28:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhH8N-0008KJ-Dz for qemu-devel@nongnu.org; Tue, 28 May 2013 06:28:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhH8N-0008K2-5U; Tue, 28 May 2013 06:28:03 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r4SAS2R3012789 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 28 May 2013 06:28:02 -0400 Received: from rincewind.home.kraxel.org (ovpn-116-31.ams2.redhat.com [10.36.116.31]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r4SAS1Qq020724; Tue, 28 May 2013 06:28:01 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id AFB1A41657; Tue, 28 May 2013 12:27:59 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Tue, 28 May 2013 12:27:58 +0200 Message-Id: <1369736879-16503-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1369736879-16503-1-git-send-email-kraxel@redhat.com> References: <1369736879-16503-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Anthony Liguori , seabios@seabios.org, qemu-stable@nongnu.org, Gerd Hoffmann Subject: [Qemu-devel] [PATCH 1/2] Revert "chardev: Get filename for new qapi backend" X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Does not handle chardevs created via chardev-add monitor command. This reverts commit 2b220025993e76d4116781ca91a4fabc5ad9c722. Signed-off-by: Gerd Hoffmann --- qemu-char.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 4f8382e..f825294 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -3276,7 +3276,6 @@ CharDriverState *qemu_chr_new_from_opts(QemuOpts *opts, ChardevReturn *ret = NULL; const char *id = qemu_opts_id(opts); const char *bid = NULL; - char *filename = g_strdup(qemu_opt_get(opts, "backend")); if (qemu_opt_get_bool(opts, "mux", 0)) { bid = g_strdup_printf("%s-base", id); @@ -3309,7 +3308,6 @@ CharDriverState *qemu_chr_new_from_opts(QemuOpts *opts, } chr = qemu_chr_find(id); - chr->filename = filename; qapi_out: qapi_free_ChardevBackend(backend);