forked from Imagelibrary/rtems
2009-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>
* ne2000/ne2000.c: Logic on defaulting port number was inverted when adding command line arguments.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2009-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* ne2000/ne2000.c: Logic on defaulting port number was inverted when
|
||||
adding command line arguments.
|
||||
|
||||
2009-11-05 Till Straumann <strauman@slac.stanford.edu>
|
||||
|
||||
* console/console.c: Fixed compiler warning.
|
||||
|
||||
@@ -1211,7 +1211,7 @@ rtems_ne_driver_attach (struct rtems_bsdnet_ifconfig *config, int attach)
|
||||
opt += sizeof ("--ne2k-port=") - 1;
|
||||
sc->port = strtoul (opt, 0, 0);
|
||||
}
|
||||
if (config->port != 0) {
|
||||
if (config->port == 0) {
|
||||
/* We use 0x300 as the default IO port number. */
|
||||
sc->port = 0x300;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user