summaryrefslogtreecommitdiffstats
path: root/src/drivers
diff options
context:
space:
mode:
authorMarty Connor2006-09-14 19:58:23 +0200
committerMarty Connor2006-09-14 19:58:23 +0200
commitb41f754e3a85deb81d201bf8587a75c968e56ddf (patch)
treeb735b3f9c86c14f7ca6267d44f515c943f2aa8ec /src/drivers
parentupdate DBG_DISCARD macro to allow the compiler to see the argument for compil... (diff)
downloadipxe-b41f754e3a85deb81d201bf8587a75c968e56ddf.tar.gz
ipxe-b41f754e3a85deb81d201bf8587a75c968e56ddf.tar.xz
ipxe-b41f754e3a85deb81d201bf8587a75c968e56ddf.zip
Fix compile warnings, remove unused var
Diffstat (limited to 'src/drivers')
-rwxr-xr-xsrc/drivers/net/ns83820.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/drivers/net/ns83820.c b/src/drivers/net/ns83820.c
index 2f26b71bd..d14f670d3 100755
--- a/src/drivers/net/ns83820.c
+++ b/src/drivers/net/ns83820.c
@@ -743,8 +743,8 @@ static void ns83820_transmit(struct nic *nic, const char *d, /* Destination */
/**************************************************************************
DISABLE - Turn off ethernet interface
***************************************************************************/
-static void ns83820_disable ( struct nic *nic, struct pci_device *pci __unused ) {
- nic_disable ( nic );
+static void ns83820_disable ( struct nic *nic ) {
+
/* put the card in its initial state */
/* This function serves 3 purposes.
* This disables DMA and interrupts so we don't receive
@@ -814,7 +814,6 @@ PROBE - Look for an adapter, this routine's visible to the outside
#define valid_link 0
static int ns83820_probe ( struct nic *nic, struct pci_device *pci ) {
- int sz;
long addr;
int using_dac = 0;
@@ -830,10 +829,8 @@ static int ns83820_probe ( struct nic *nic, struct pci_device *pci ) {
adjust_pci_device(pci);
addr = pci_bar_start(pci, PCI_BASE_ADDRESS_1);
- sz = pci_bar_size(pci, PCI_BASE_ADDRESS_1);
ns->base = ioremap(addr, (1UL << 12));
-// ns->base = ioremap(addr, sz);
if (!ns->base)
return 0;
@@ -982,7 +979,6 @@ static int ns83820_probe ( struct nic *nic, struct pci_device *pci ) {
writel(0, ns->base + WCSR);
ns83820_getmac(nic, nic->node_addr);
- printf("%! at ioaddr 0x%hX, ", nic->node_addr, ns->base);
if (using_dac) {
dprintf(("%s: using 64 bit addressing.\n", pci->name));