mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53: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
|
@ -188,7 +188,7 @@ static void bmdma_restart_bh(void *opaque)
|
|||
{
|
||||
BMDMAState *bm = opaque;
|
||||
IDEBus *bus = bm->bus;
|
||||
int is_read;
|
||||
bool is_read;
|
||||
int error_status;
|
||||
|
||||
qemu_bh_delete(bm->bh);
|
||||
|
@ -198,7 +198,7 @@ static void bmdma_restart_bh(void *opaque)
|
|||
return;
|
||||
}
|
||||
|
||||
is_read = !!(bus->error_status & BM_STATUS_RETRY_READ);
|
||||
is_read = (bus->error_status & BM_STATUS_RETRY_READ) != 0;
|
||||
|
||||
/* The error status must be cleared before resubmitting the request: The
|
||||
* request may fail again, and this case can only be distinguished if the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue