Received: from eggs.gnu.org ([2001:4830:134:3::10]:51318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vq7lg-0005nR-Qg for qemu-devel@nongnu.org; Mon, 09 Dec 2013 15:49:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vq7lb-0003oM-44 for qemu-devel@nongnu.org; Mon, 09 Dec 2013 15:49:28 -0500 Received: from mail-ea0-x22c.google.com ([2a00:1450:4013:c01::22c]:45349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vq7la-0003o5-TS for qemu-devel@nongnu.org; Mon, 09 Dec 2013 15:49:23 -0500 Received: by mail-ea0-f172.google.com with SMTP id q10so1838633ead.3 for ; Mon, 09 Dec 2013 12:49:22 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Mon, 9 Dec 2013 21:48:16 +0100 Message-Id: <1386622112-27257-15-git-send-email-pbonzini@redhat.com> In-Reply-To: <1386622112-27257-1-git-send-email-pbonzini@redhat.com> References: <1386622112-27257-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] [PULL 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: cornelia.huck@de.ibm.com, 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.4.2