Commit 3fe5c14e7472f88dddf837a9faa60f6abb2ec6bf
Committed by
Anthony Liguori
1 parent
538f3686
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>
Showing
1 changed file
with
0 additions
and
6 deletions
vl.c
... | ... | @@ -6150,8 +6150,6 @@ int main(int argc, char **argv, char **envp) |
6150 | 6150 | for(i = 0; i < MAX_SERIAL_PORTS; i++) { |
6151 | 6151 | const char *devname = serial_devices[i]; |
6152 | 6152 | if (devname && strcmp(devname, "none")) { |
6153 | - char label[32]; | |
6154 | - snprintf(label, sizeof(label), "serial%d", i); | |
6155 | 6153 | if (strstart(devname, "vc", 0)) |
6156 | 6154 | qemu_chr_printf(serial_hds[i], "serial%d console\r\n", i); |
6157 | 6155 | } |
... | ... | @@ -6160,8 +6158,6 @@ int main(int argc, char **argv, char **envp) |
6160 | 6158 | for(i = 0; i < MAX_PARALLEL_PORTS; i++) { |
6161 | 6159 | const char *devname = parallel_devices[i]; |
6162 | 6160 | if (devname && strcmp(devname, "none")) { |
6163 | - char label[32]; | |
6164 | - snprintf(label, sizeof(label), "parallel%d", i); | |
6165 | 6161 | if (strstart(devname, "vc", 0)) |
6166 | 6162 | qemu_chr_printf(parallel_hds[i], "parallel%d console\r\n", i); |
6167 | 6163 | } |
... | ... | @@ -6170,8 +6166,6 @@ int main(int argc, char **argv, char **envp) |
6170 | 6166 | for(i = 0; i < MAX_VIRTIO_CONSOLES; i++) { |
6171 | 6167 | const char *devname = virtio_consoles[i]; |
6172 | 6168 | if (virtcon_hds[i] && devname) { |
6173 | - char label[32]; | |
6174 | - snprintf(label, sizeof(label), "virtcon%d", i); | |
6175 | 6169 | if (strstart(devname, "vc", 0)) |
6176 | 6170 | qemu_chr_printf(virtcon_hds[i], "virtio console%d\r\n", i); |
6177 | 6171 | } | ... | ... |