Received: from eggs.gnu.org ([2001:4830:134:3::10]:53648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmL9X-0006Es-NB for qemu-devel@nongnu.org; Fri, 29 Nov 2013 05:18:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VmL9R-0004Go-TV for qemu-devel@nongnu.org; Fri, 29 Nov 2013 05:18:27 -0500 Received: from mail-ea0-x235.google.com ([2a00:1450:4013:c01::235]:60061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmL9R-0004Ge-NE for qemu-devel@nongnu.org; Fri, 29 Nov 2013 05:18:21 -0500 Received: by mail-ea0-f181.google.com with SMTP id m10so6618428eaj.40 for ; Fri, 29 Nov 2013 02:18:20 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 29 Nov 2013 11:17:26 +0100 Message-Id: <1385720262-14107-15-git-send-email-pbonzini@redhat.com> In-Reply-To: <1385720262-14107-1-git-send-email-pbonzini@redhat.com> References: <1385720262-14107-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH 14/30] virtio-9p: QOM realize preparations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: afaerber@suse.de, mst@redhat.com From: Andreas Färber Avoid unnecessary VIRTIO_DEVICE(). Signed-off-by: Andreas Färber Signed-off-by: Paolo Bonzini --- hw/9pfs/virtio-9p-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c index f0ffbe8..ea21655 100644 --- a/hw/9pfs/virtio-9p-device.c +++ b/hw/9pfs/virtio-9p-device.c @@ -49,7 +49,7 @@ static int virtio_9p_device_init(VirtIODevice *vdev) FsDriverEntry *fse; V9fsPath path; - virtio_init(VIRTIO_DEVICE(s), "virtio-9p", VIRTIO_ID_9P, + virtio_init(vdev, "virtio-9p", VIRTIO_ID_9P, sizeof(struct virtio_9p_config) + MAX_TAG_LEN); /* initialize pdu allocator */ -- 1.8.3.1