diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-09-28 17:22:56 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-09-28 19:40:56 +0200 |
commit | 1ceee0d5cc841fc9ca8e72b81450b598ab307f14 (patch) | |
tree | 4aef038b723803cbc7369f415b41b05b5ddf9669 /hw/scsi-disk.c | |
parent | 92aa5c6d77ac29574c1717bcf57827fa1e586f31 (diff) | |
download | hqemu-1ceee0d5cc841fc9ca8e72b81450b598ab307f14.zip hqemu-1ceee0d5cc841fc9ca8e72b81450b598ab307f14.tar.gz |
iostatus: change is_read to a bool
Do this while we are touching this part of the code, before introducing
more uses of "int is_read".
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/scsi-disk.c')
-rw-r--r-- | hw/scsi-disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index c295326..2dd99a9 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@ -386,7 +386,7 @@ static void scsi_read_data(SCSIRequest *req) */ static int scsi_handle_rw_error(SCSIDiskReq *r, int error) { - int is_read = (r->req.cmd.xfer == SCSI_XFER_FROM_DEV); + bool is_read = (r->req.cmd.xfer == SCSI_XFER_FROM_DEV); SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); BlockdevOnError action = bdrv_get_on_error(s->qdev.conf.bs, is_read); |