From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsMx7-0000aR-0U for qemu-devel@nongnu.org; Wed, 04 Jun 2014 21:58:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsMx0-0007vX-Ov for qemu-devel@nongnu.org; Wed, 04 Jun 2014 21:58:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsMx0-0007vR-GK for qemu-devel@nongnu.org; Wed, 04 Jun 2014 21:58:42 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s551wfeC002746 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 4 Jun 2014 21:58:41 -0400 From: Fam Zheng Date: Thu, 5 Jun 2014 09:58:42 +0800 Message-Id: <1401933526-22436-5-git-send-email-famz@redhat.com> In-Reply-To: <1401933526-22436-1-git-send-email-famz@redhat.com> References: <1401933526-22436-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v2 4/8] 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 --- 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 4873726..8393ecf 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 { @@ -136,7 +135,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