mirror of https://github.com/xemu-project/xemu.git
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>
This commit is contained in:
parent
909a196d27
commit
dcb0780990
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue