diff options
author | Dongli Zhang <dongli.zhang@oracle.com> | 2018-11-06 12:52:32 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2018-12-12 09:16:55 +0000 |
commit | e61809ed8ac3a2f68eb1cc231244f84eb06adacf (patch) | |
tree | 3cd74b3dde6ca0c40f025b7266ad9751dccdecbf | |
parent | 5636da76824bf34ddb73212334124a5f5b3b3320 (diff) | |
download | qemu-e61809ed8ac3a2f68eb1cc231244f84eb06adacf.zip qemu-e61809ed8ac3a2f68eb1cc231244f84eb06adacf.tar.gz qemu-e61809ed8ac3a2f68eb1cc231244f84eb06adacf.tar.bz2 |
virtio-blk: fix comment for virtio_blk_rw_complete as nalloc is initially -1
The initial value of nalloc is -1, but not 1.
Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-id: 1541479952-32355-1-git-send-email-dongli.zhang@oracle.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rw-r--r-- | hw/block/virtio-blk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index fb0d74d..f208c6d 100644 --- a/hw/block/virtio-blk.c +++ b/hw/block/virtio-blk.c @@ -96,7 +96,7 @@ static void virtio_blk_rw_complete(void *opaque, int ret) trace_virtio_blk_rw_complete(vdev, req, ret); if (req->qiov.nalloc != -1) { - /* If nalloc is != 1 req->qiov is a local copy of the original + /* If nalloc is != -1 req->qiov is a local copy of the original * external iovec. It was allocated in submit_requests to be * able to merge requests. */ qemu_iovec_destroy(&req->qiov); |