[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [4558] ETRAX: Correct check for second nic.
From: |
Edgar E. Iglesias |
Subject: |
[Qemu-devel] [4558] ETRAX: Correct check for second nic. |
Date: |
Sat, 24 May 2008 16:03:59 +0000 |
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
===================================================================
--- trunk/hw/etraxfs.c 2008-05-24 16:00:05 UTC (rev 4557)
+++ trunk/hw/etraxfs.c 2008-05-24 16:03:59 UTC (rev 4558)
@@ -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. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [4558] ETRAX: Correct check for second nic.,
Edgar E. Iglesias <=