Commit 3a8bae3e057a775070b5da887ce506a5f9ec6139

Authored by malc
1 parent 26d64a85

Remove dead code

Signed-off-by: malc <av1474@comtv.ru>
Showing 1 changed file with 7 additions and 14 deletions
... ... @@ -778,21 +778,14 @@ static int parallel_irq[MAX_PARALLEL_PORTS] = { 7, 7, 7 };
778 778 static void audio_init (PCIBus *pci_bus, qemu_irq *pic)
779 779 {
780 780 struct soundhw *c;
781   - int audio_enabled = 0;
782 781  
783   - for (c = soundhw; !audio_enabled && c->name; ++c) {
784   - audio_enabled = c->enabled;
785   - }
786   -
787   - if (audio_enabled) {
788   - for (c = soundhw; c->name; ++c) {
789   - if (c->enabled) {
790   - if (c->isa) {
791   - c->init.init_isa(pic);
792   - } else {
793   - if (pci_bus) {
794   - c->init.init_pci(pci_bus);
795   - }
  782 + for (c = soundhw; c->name; ++c) {
  783 + if (c->enabled) {
  784 + if (c->isa) {
  785 + c->init.init_isa(pic);
  786 + } else {
  787 + if (pci_bus) {
  788 + c->init.init_pci(pci_bus);
796 789 }
797 790 }
798 791 }
... ...