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:
Paolo Bonzini 2012-09-28 17:22:56 +02:00 committed by Kevin Wolf
parent 92aa5c6d77
commit 1ceee0d5cc
7 changed files with 11 additions and 11 deletions

View file

@ -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