From patchwork Sat Feb 8 10:01:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 318405 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 511AB2C00AA for ; Sat, 8 Feb 2014 21:23:43 +1100 (EST) Received: from localhost ([::1]:45881 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WC4lz-0002Tx-RE for incoming@patchwork.ozlabs.org; Sat, 08 Feb 2014 05:04:31 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WC4js-0007Z2-GA for qemu-devel@nongnu.org; Sat, 08 Feb 2014 05:02:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WC4jk-0004GR-3s for qemu-devel@nongnu.org; Sat, 08 Feb 2014 05:02:20 -0500 Received: from mail-ea0-x229.google.com ([2a00:1450:4013:c01::229]:43030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WC4jj-0004GJ-TR for qemu-devel@nongnu.org; Sat, 08 Feb 2014 05:02:12 -0500 Received: by mail-ea0-f169.google.com with SMTP id h10so2025397eak.14 for ; Sat, 08 Feb 2014 02:02:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=5hcpetdfMDKQMUUsS3neyax+YHYLBHosjWPKeZRRhYU=; b=iPBqX0zCf2YLywZRUqKOtuBiZGj+1g5gzePzH8I9jUvFBKKOuF40gfEWvV+5fk/2QI ohpzyCe560RKtl/sHofcSzL75jQ9Y0RFC/XH7N/rb0S2IvHO0bD7iYI2Jicci7aMUyf+ 67uG2fZHIVedYEzohLfXBkHOxcpKEln9R/h0OkKq3HMkbIG/AaYv+DzSh2c6nUznIsJL FPnwr2iTCI5L/CIdsni264Sv6kD19TPqphyCZlPCh+C4sJsVesFHJTmCq3VrcoznNS/a W0ANHK7XDSNc+8ere8PnZ3bCFRpu1Mz/w1NfeX98Hu3RH7lSPcURrHJCqL6vFxJ0cGQU b7yg== X-Received: by 10.14.111.201 with SMTP id w49mr765558eeg.92.1391853731075; Sat, 08 Feb 2014 02:02:11 -0800 (PST) Received: from yakj.usersys.redhat.com.cz (auth47-172.fi.muni.cz. [147.251.47.172]) by mx.google.com with ESMTPSA id k41sm27156087een.19.2014.02.08.02.02.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Feb 2014 02:02:10 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Sat, 8 Feb 2014 11:01:45 +0100 Message-Id: <1391853717-3837-3-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.5.3 In-Reply-To: <1391853717-3837-1-git-send-email-pbonzini@redhat.com> References: <1391853717-3837-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::229 Subject: [Qemu-devel] [PULL 02/14] qdev: sizes are now parsed by StringInputVisitor 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 Reviewed-by: Igor Mammedov Reviewed-by: Eric Blake 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,