]> Git Repo - qemu.git/commitdiff
virtio-blk: Drop VirtIOBlockRequest.read
authorFam Zheng <[email protected]>
Wed, 11 Jun 2014 04:11:45 +0000 (12:11 +0800)
committerKevin Wolf <[email protected]>
Fri, 27 Jun 2014 16:18:18 +0000 (18:18 +0200)
Since it's set but not used.

Signed-off-by: Fam Zheng <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
hw/block/dataplane/virtio-blk.c

index 3d1e9e1c43c94c1e20500bd3abecb67e0c16b94d..4e5e4589bd1210ec9046fcd2b1c29e83b342f08c 100644 (file)
@@ -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;
This page took 0.025882 seconds and 4 git commands to generate.