mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
Remove dead code
vl.c contains some dead code that initialises a 'label' string with the name of the char device being initialised. This is unused. Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
538f368612
commit
3fe5c14e74
1 changed files with 0 additions and 6 deletions
6
vl.c
6
vl.c
|
@ -6150,8 +6150,6 @@ int main(int argc, char **argv, char **envp)
|
|||
for(i = 0; i < MAX_SERIAL_PORTS; i++) {
|
||||
const char *devname = serial_devices[i];
|
||||
if (devname && strcmp(devname, "none")) {
|
||||
char label[32];
|
||||
snprintf(label, sizeof(label), "serial%d", i);
|
||||
if (strstart(devname, "vc", 0))
|
||||
qemu_chr_printf(serial_hds[i], "serial%d console\r\n", i);
|
||||
}
|
||||
|
@ -6160,8 +6158,6 @@ int main(int argc, char **argv, char **envp)
|
|||
for(i = 0; i < MAX_PARALLEL_PORTS; i++) {
|
||||
const char *devname = parallel_devices[i];
|
||||
if (devname && strcmp(devname, "none")) {
|
||||
char label[32];
|
||||
snprintf(label, sizeof(label), "parallel%d", i);
|
||||
if (strstart(devname, "vc", 0))
|
||||
qemu_chr_printf(parallel_hds[i], "parallel%d console\r\n", i);
|
||||
}
|
||||
|
@ -6170,8 +6166,6 @@ int main(int argc, char **argv, char **envp)
|
|||
for(i = 0; i < MAX_VIRTIO_CONSOLES; i++) {
|
||||
const char *devname = virtio_consoles[i];
|
||||
if (virtcon_hds[i] && devname) {
|
||||
char label[32];
|
||||
snprintf(label, sizeof(label), "virtcon%d", i);
|
||||
if (strstart(devname, "vc", 0))
|
||||
qemu_chr_printf(virtcon_hds[i], "virtio console%d\r\n", i);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue