aboutsummaryrefslogtreecommitdiff
path: root/hw/etraxfs.c
diff options
context:
space:
mode:
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-24 16:03:59 +0000
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-24 16:03:59 +0000
commit3ce7a69f151420f5ec7edd40c745f21206da3ce3 (patch)
treee221bc82449710182b431e98ee09732e5c3c7b10 /hw/etraxfs.c
parentdb097cd313ee99a9ba9eaf225a0fee667df862af (diff)
downloadqemu-3ce7a69f151420f5ec7edd40c745f21206da3ce3.zip
qemu-3ce7a69f151420f5ec7edd40c745f21206da3ce3.tar.gz
qemu-3ce7a69f151420f5ec7edd40c745f21206da3ce3.tar.bz2
ETRAX: Correct check for second nic.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4558 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/etraxfs.c')
-rw-r--r--hw/etraxfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/etraxfs.c b/hw/etraxfs.c
index 7b3e2ab..9886ae9 100644
--- a/hw/etraxfs.c
+++ b/hw/etraxfs.c
@@ -108,7 +108,7 @@ void bareetraxfs_init (ram_addr_t ram_size, int vga_ram_size,
/* Add the two ethernet blocks. */
eth[0] = etraxfs_eth_init(&nd_table[0], env, pic + 25, 0xb0034000);
- if (&nd_table[1])
+ if (nb_nics > 1)
eth[1] = etraxfs_eth_init(&nd_table[1], env, pic + 26, 0xb0036000);
/* The DMA Connector block is missing, hardwire things for now. */