summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2012-11-21 11:21:21 +0530
committerAnthony Liguori <aliguori@us.ibm.com>2012-11-26 14:26:37 -0600
commit42015c9acb9fb418c97c42f6e0d44c84999c769d (patch)
treed4eda87582843a5170af630c2b5682b892863bcc /hw
parent8cc677435498561d8fe213bb44a02cf4f75cc685 (diff)
downloadqemu-42015c9acb9fb418c97c42f6e0d44c84999c769d.tar.gz
virtio-rng: fix typos, comments
Fix typos, whitespace and update comments to match current implementation. Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/virtio-rng.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/hw/virtio-rng.c b/hw/virtio-rng.c
index c8a6da7fbb..f4ed9cf92a 100644
--- a/hw/virtio-rng.c
+++ b/hw/virtio-rng.c
@@ -23,7 +23,6 @@ typedef struct VirtIORNG {
/* Only one vq - guest puts buffer(s) on it when it needs entropy */
VirtQueue *vq;
- /* Config data for the device -- currently only chardev */
VirtIORNGConf *conf;
RngBackend *rng;
@@ -125,9 +124,9 @@ static int virtio_rng_load(QEMUFile *f, void *opaque, int version_id)
virtio_load(&vrng->vdev, f);
/* We may have an element ready but couldn't process it due to a quota
- limit. Make sure to try again after live migration when the quota may
- have been reset.
- */
+ * limit. Make sure to try again after live migration when the quota may
+ * have been reset.
+ */
virtio_rng_process(vrng);
return 0;