ether_ioctl() expects i82586_init() to return an errno. Have it do so

(admittedly only EIO at present).
This commit is contained in:
bjh21 2001-04-09 22:31:16 +00:00
parent cd24bc13e7
commit fd7c4f1c79

View File

@ -1,4 +1,4 @@
/* $NetBSD: i82586.c,v 1.36 2001/03/10 20:04:30 jdolecek Exp $ */
/* $NetBSD: i82586.c,v 1.37 2001/04/09 22:31:16 bjh21 Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -147,7 +147,7 @@ Mode of operation:
#include <sys/param.h>
__KERNEL_RCSID(0, "$NetBSD: i82586.c,v 1.36 2001/03/10 20:04:30 jdolecek Exp $");
__KERNEL_RCSID(0, "$NetBSD: i82586.c,v 1.37 2001/04/09 22:31:16 bjh21 Exp $");
#include <sys/systm.h>
#include <sys/mbuf.h>
@ -1683,13 +1683,13 @@ i82586_init(ifp)
* Send the configure command first.
*/
if (ie_cfg_setup(sc, cmd, sc->promisc, 0) == 0)
return (1);
return EIO;
/*
* Send the Individual Address Setup command.
*/
if (ie_ia_setup(sc, cmd) == 0)
return (1);
return EIO;
/*
* Run the time-domain reflectometer.
@ -1700,7 +1700,7 @@ i82586_init(ifp)
* Set the multi-cast filter, if any
*/
if (ie_mc_setup(sc, cmd) == 0)
return (1);
return EIO;
/*
* Acknowledge any interrupts we have generated thus far.