Il 10/06/2013 22:24, Stefan Weil ha scritto:
> This fixes a warning from cppcheck.
> 
> Signed-off-by: Stefan Weil <s...@weilnetz.de>
> ---
>  hw/scsi/vmw_pvscsi.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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) {
> 

Applied to scsi-next branch, thanks.

Paolo

Reply via email to