Skip to contentSkip to conversation

[4558] ETRAX: Correct check for second nic.

Qemu-devel Edgar E. Iglesias 1 participant 1 message May 24, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 4558

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4558
Author:   edgar_igl
Date:     2008-05-24 16:03:59 +0000 (Sat, 24 May 2008)

Log Message:
-----------
ETRAX: Correct check for second nic.

Modified Paths:
--------------
trunk/hw/etraxfs.c

Modified: trunk/hw/etraxfs.c
===================================================================

hw/etraxfs.c +1 -1
@@ -108,7 +108,7 @@
 
     /* 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.  */