Removed unused code in the ethernet driver that was left from an old implementation
Removed/rewritten the use of uninitialized variables in error messages.
This commit is contained in:
parent
850f392c86
commit
9a755c3a1f
3 changed files with 2 additions and 11 deletions
|
@ -145,8 +145,6 @@ PUBLIC void osdep_eth_init()
|
|||
}
|
||||
}
|
||||
|
||||
r= ENXIO;
|
||||
|
||||
sr_add_minor(if2minor(ecp->ec_ifno, ETH_DEV_OFF),
|
||||
i, eth_open, eth_close, eth_read,
|
||||
eth_write, eth_ioctl, eth_cancel, eth_select);
|
||||
|
@ -156,13 +154,6 @@ PUBLIC void osdep_eth_init()
|
|||
eth_port->etp_vlan_port= NULL;
|
||||
eth_port->etp_wr_pack= 0;
|
||||
eth_port->etp_rd_pack= 0;
|
||||
if (r == OK)
|
||||
{
|
||||
eth_port->etp_ethaddr= *(ether_addr_t *)mess.m3_ca1;
|
||||
printf("osdep_eth_init: setting EPF_GOT_ADDR\n");
|
||||
eth_port->etp_flags |= EPF_GOT_ADDR;
|
||||
setup_read (eth_port);
|
||||
}
|
||||
}
|
||||
|
||||
/* And now come the VLANs */
|
||||
|
|
|
@ -281,7 +281,7 @@ SANITYCHECK(SCL_DETAIL);
|
|||
/* We secretly know that making a new pagetable
|
||||
* in the same slot if one was there will never fail.
|
||||
*/
|
||||
vm_panic("new_mem: pt_new failed", s);
|
||||
vm_panic("new_mem: pt_new failed", ENOMEM);
|
||||
}
|
||||
rmp->vm_flags |= VMF_HASPT;
|
||||
SANITYCHECK(SCL_DETAIL);
|
||||
|
|
|
@ -328,7 +328,7 @@ PUBLIC void *vm_allocpage(phys_bytes *phys, int reason)
|
|||
if((r=pt_writemap(pt, loc, *phys, I386_PAGE_SIZE,
|
||||
I386_VM_PRESENT | I386_VM_USER | I386_VM_WRITE, 0)) != OK) {
|
||||
FREE_MEM(newpage, CLICKSPERPAGE);
|
||||
printf("vm_allocpage writemap failed\n", ret);
|
||||
printf("vm_allocpage writemap failed\n");
|
||||
level--;
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue