Revision 0ae18cee hw/etraxfs.c

b/hw/etraxfs.c
94 94
    }
95 95

  
96 96
    /* Add the two ethernet blocks.  */
97
    nd_table[0].model = nd_table[0].model ? nd_table[0].model : "fseth";
98 97
    eth[0] = etraxfs_eth_init(&nd_table[0], env, pic->irq + 25, 0x30034000, 1);
99
    if (nb_nics > 1) {
100
        nd_table[1].model = nd_table[1].model ? nd_table[1].model : "fseth";
98
    if (nb_nics > 1)
101 99
        eth[1] = etraxfs_eth_init(&nd_table[1], env,
102 100
                                  pic->irq + 26, 0x30036000, 2);
103
    }
104 101

  
105 102
    /* The DMA Connector block is missing, hardwire things for now.  */
106 103
    etraxfs_dmac_connect_client(etraxfs_dmac, 0, eth[0]);

Also available in: Unified diff