Received: from eggs.gnu.org ([2001:4830:134:3::10]:33684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8rNn-0005gr-IW for qemu-devel@nongnu.org; Thu, 30 Jan 2014 08:10:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8rNf-0003Bh-5m for qemu-devel@nongnu.org; Thu, 30 Jan 2014 08:10:15 -0500 Received: from mail-ee0-x22c.google.com ([2a00:1450:4013:c00::22c]:40485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8rNe-0003BW-WF for qemu-devel@nongnu.org; Thu, 30 Jan 2014 08:10:07 -0500 Received: by mail-ee0-f44.google.com with SMTP id c13so1572438eek.17 for ; Thu, 30 Jan 2014 05:10:06 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 30 Jan 2014 14:09:44 +0100 Message-Id: <1391087394-17914-3-git-send-email-pbonzini@redhat.com> In-Reply-To: <1391087394-17914-1-git-send-email-pbonzini@redhat.com> References: <1391087394-17914-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 02/12] qdev: sizes are now parsed by StringInputVisitor List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: armbru@redhat.com, afaerber@suse.de Signed-off-by: Paolo Bonzini --- hw/core/qdev-properties.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/hw/core/qdev-properties.c b/hw/core/qdev-properties.c index b949f0e..da37710 100644 --- a/hw/core/qdev-properties.c +++ b/hw/core/qdev-properties.c @@ -1140,16 +1140,6 @@ static void set_size(Object *obj, Visitor *v, void *opaque, visit_type_size(v, ptr, name, errp); } -static int parse_size(DeviceState *dev, Property *prop, const char *str) -{ - uint64_t *ptr = qdev_get_prop_ptr(dev, prop); - - if (str != NULL) { - parse_option_size(prop->name, str, ptr, &error_abort); - } - return 0; -} - static int print_size(DeviceState *dev, Property *prop, char *dest, size_t len) { static const char suffixes[] = { 'B', 'K', 'M', 'G', 'T' }; @@ -1171,7 +1161,6 @@ static int print_size(DeviceState *dev, Property *prop, char *dest, size_t len) PropertyInfo qdev_prop_size = { .name = "size", - .parse = parse_size, .print = print_size, .get = get_size, .set = set_size, -- 1.8.4.2