[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT 3a8bae3] Remove dead code
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT 3a8bae3] Remove dead code |
Date: |
Tue, 19 May 2009 23:29:24 -0000 |
From: malc <address@hidden>
Signed-off-by: malc <address@hidden>
diff --git a/hw/pc.c b/hw/pc.c
index 901489a..5c049bf 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -778,21 +778,14 @@ static int parallel_irq[MAX_PARALLEL_PORTS] = { 7, 7, 7 };
static void audio_init (PCIBus *pci_bus, qemu_irq *pic)
{
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) {
- if (c->enabled) {
- if (c->isa) {
- c->init.init_isa(pic);
- } else {
- if (pci_bus) {
- c->init.init_pci(pci_bus);
- }
+ for (c = soundhw; c->name; ++c) {
+ if (c->enabled) {
+ if (c->isa) {
+ c->init.init_isa(pic);
+ } else {
+ if (pci_bus) {
+ c->init.init_pci(pci_bus);
}
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT 3a8bae3] Remove dead code,
Anthony Liguori <=