]> git.proxmox.com Git - qemu.git/commit - hw/virtio-serial-bus.c
virtio-serial: Simplify virtio_serial_load()
authorMarkus Armbruster <armbru@redhat.com>
Mon, 31 May 2010 14:19:43 +0000 (16:19 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 30 Jun 2010 18:38:58 +0000 (20:38 +0200)
commitf83ccb3eab5926b5ed37db7e94e0f22ec8754003
tree86239c5cc2eac18cb2e8ac203ff043e67e82b52a
parent81bf96d3d299a7f88bf3e2ece4f795a9949db5f7
virtio-serial: Simplify virtio_serial_load()

For all i, ports_map[i] is used in and only in the i-th iteration.
Replace the dynamic array by a scalar variable.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Acked-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/virtio-serial-bus.c