Revision 1ceee0d5 hw/virtio-blk.c

b/hw/virtio-blk.c
64 64
}
65 65

  
66 66
static int virtio_blk_handle_rw_error(VirtIOBlockReq *req, int error,
67
    int is_read)
67
    bool is_read)
68 68
{
69 69
    BlockdevOnError action = bdrv_get_on_error(req->dev->bs, is_read);
70 70
    VirtIOBlock *s = req->dev;
......
98 98
    trace_virtio_blk_rw_complete(req, ret);
99 99

  
100 100
    if (ret) {
101
        int is_read = !(ldl_p(&req->out->type) & VIRTIO_BLK_T_OUT);
101
        bool is_read = !(ldl_p(&req->out->type) & VIRTIO_BLK_T_OUT);
102 102
        if (virtio_blk_handle_rw_error(req, -ret, is_read))
103 103
            return;
104 104
    }

Also available in: Unified diff