Received: from eggs.gnu.org ([2001:4830:134:3::10]:35861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuZt9-0003Tv-2O for qemu-devel@nongnu.org; Wed, 11 Jun 2014 00:11:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuZt2-00013S-Qe for qemu-devel@nongnu.org; Wed, 11 Jun 2014 00:11:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuZt2-00011s-IE for qemu-devel@nongnu.org; Wed, 11 Jun 2014 00:11:44 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5B4BipK007612 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 11 Jun 2014 00:11:44 -0400 From: Fam Zheng Date: Wed, 11 Jun 2014 12:11:45 +0800 Message-Id: <1402459910-18889-5-git-send-email-famz@redhat.com> In-Reply-To: <1402459910-18889-1-git-send-email-famz@redhat.com> References: <1402459910-18889-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v4 4/9] virtio-blk: Drop VirtIOBlockRequest.read List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Paolo Bonzini , Stefan Hajnoczi Since it's set but not used. Signed-off-by: Fam Zheng Reviewed-by: Paolo Bonzini --- hw/block/dataplane/virtio-blk.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hw/block/dataplane/virtio-blk.c b/hw/block/dataplane/virtio-blk.c index 3d1e9e1..4e5e458 100644 --- a/hw/block/dataplane/virtio-blk.c +++ b/hw/block/dataplane/virtio-blk.c @@ -29,7 +29,6 @@ typedef struct { QEMUIOVector *inhdr; /* iovecs for virtio_blk_inhdr */ VirtQueueElement *elem; /* saved data from the virtqueue */ QEMUIOVector qiov; /* original request iovecs */ - bool read; /* read or write? */ } VirtIOBlockRequest; struct VirtIOBlockDataPlane { @@ -137,7 +136,6 @@ static void do_rdwr_cmd(VirtIOBlockDataPlane *s, bool read, req->s = s; req->elem = elem; req->inhdr = inhdr; - req->read = read; qemu_iovec_init_external(&req->qiov, iov, iov_cnt); qiov = &req->qiov; -- 2.0.0