Commit 3ce7a69f151420f5ec7edd40c745f21206da3ce3
1 parent
db097cd3
ETRAX: Correct check for second nic.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4558 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
hw/etraxfs.c
... | ... | @@ -108,7 +108,7 @@ void bareetraxfs_init (ram_addr_t ram_size, int vga_ram_size, |
108 | 108 | |
109 | 109 | /* Add the two ethernet blocks. */ |
110 | 110 | eth[0] = etraxfs_eth_init(&nd_table[0], env, pic + 25, 0xb0034000); |
111 | - if (&nd_table[1]) | |
111 | + if (nb_nics > 1) | |
112 | 112 | eth[1] = etraxfs_eth_init(&nd_table[1], env, pic + 26, 0xb0036000); |
113 | 113 | |
114 | 114 | /* The DMA Connector block is missing, hardwire things for now. */ | ... | ... |