mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 00:07:57 -06:00
Remove dead code
Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
parent
26d64a85a3
commit
3a8bae3e05
1 changed files with 7 additions and 14 deletions
7
hw/pc.c
7
hw/pc.c
|
@ -778,13 +778,7 @@ static int parallel_irq[MAX_PARALLEL_PORTS] = { 7, 7, 7 };
|
||||||
static void audio_init (PCIBus *pci_bus, qemu_irq *pic)
|
static void audio_init (PCIBus *pci_bus, qemu_irq *pic)
|
||||||
{
|
{
|
||||||
struct soundhw *c;
|
struct soundhw *c;
|
||||||
int audio_enabled = 0;
|
|
||||||
|
|
||||||
for (c = soundhw; !audio_enabled && c->name; ++c) {
|
|
||||||
audio_enabled = c->enabled;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (audio_enabled) {
|
|
||||||
for (c = soundhw; c->name; ++c) {
|
for (c = soundhw; c->name; ++c) {
|
||||||
if (c->enabled) {
|
if (c->enabled) {
|
||||||
if (c->isa) {
|
if (c->isa) {
|
||||||
|
@ -796,7 +790,6 @@ static void audio_init (PCIBus *pci_bus, qemu_irq *pic)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue