mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
92aa5c6d77
commit
1ceee0d5cc
7 changed files with 11 additions and 11 deletions
|
@ -556,7 +556,7 @@ void ide_dma_error(IDEState *s)
|
|||
|
||||
static int ide_handle_rw_error(IDEState *s, int error, int op)
|
||||
{
|
||||
int is_read = (op & BM_STATUS_RETRY_READ);
|
||||
bool is_read = (op & BM_STATUS_RETRY_READ) != 0;
|
||||
BlockdevOnError action = bdrv_get_on_error(s->bs, is_read);
|
||||
|
||||
if (action == BLOCKDEV_ON_ERROR_IGNORE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue