aboutsummaryrefslogtreecommitdiff
path: root/hw/scsi
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2013-06-10 22:24:56 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2013-06-11 23:45:44 +0400
commitdcb0780990f7d579b2d6f9c67ef841a75b3a758b (patch)
treece3a350d6c535f49e9a3467ee5fb4ffa06116009 /hw/scsi
parent909a196d2754388d3b15a34b688095c655792124 (diff)
downloadqemu-dcb0780990f7d579b2d6f9c67ef841a75b3a758b.zip
qemu-dcb0780990f7d579b2d6f9c67ef841a75b3a758b.tar.gz
qemu-dcb0780990f7d579b2d6f9c67ef841a75b3a758b.tar.bz2
hw/scsi: Don't increment a boolean value
This fixes a warning from cppcheck. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/scsi')
-rw-r--r--hw/scsi/vmw_pvscsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi/vmw_pvscsi.c
index 48d12f4..446f723 100644
--- a/hw/scsi/vmw_pvscsi.c
+++ b/hw/scsi/vmw_pvscsi.c
@@ -389,7 +389,7 @@ pvscsi_process_completion_queue(void *opaque)
QTAILQ_REMOVE(&s->completion_queue, pvscsi_req, next);
pvscsi_cmp_ring_put(s, &pvscsi_req->cmp);
g_free(pvscsi_req);
- has_completed++;
+ has_completed = true;
}
if (has_completed) {