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:
Joel Sherrill
2009-11-23 18:26:55 +00:00
parent 9999ac00a2
commit fb1102eac0
2 changed files with 6 additions and 1 deletions

View File

@@ -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.

View File

@@ -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;
}