Cosmetic: delete dead code.
This commit is contained in:
parent
7f292b1471
commit
dfe2dae171
|
@ -34,7 +34,7 @@
|
|||
* the "cx" driver for Cronyx's HDLC-in-hardware device). This driver
|
||||
* is only the glue between sppp and i4b.
|
||||
*
|
||||
* $Id: i4b_isppp.c,v 1.22 2007/03/04 06:03:30 christos Exp $
|
||||
* $Id: i4b_isppp.c,v 1.23 2008/05/22 01:00:50 dyoung Exp $
|
||||
*
|
||||
* $FreeBSD$
|
||||
*
|
||||
|
@ -43,7 +43,7 @@
|
|||
*---------------------------------------------------------------------------*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: i4b_isppp.c,v 1.22 2007/03/04 06:03:30 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: i4b_isppp.c,v 1.23 2008/05/22 01:00:50 dyoung Exp $");
|
||||
|
||||
#ifndef __NetBSD__
|
||||
#define USE_ISPPP
|
||||
|
@ -358,31 +358,16 @@ ipppattach()
|
|||
* process ioctl
|
||||
*---------------------------------------------------------------------------*/
|
||||
static int
|
||||
i4bisppp_ioctl(struct ifnet *ifp, IOCTL_CMD_T cmd, void *data)
|
||||
i4bisppp_ioctl(struct ifnet *ifp, unsigned long cmd, void *data)
|
||||
{
|
||||
struct i4bisppp_softc *sc = ifp->if_softc;
|
||||
int error;
|
||||
|
||||
#ifndef USE_ISPPP
|
||||
error = sppp_ioctl(&sc->sc_sp.pp_if, cmd, data);
|
||||
return sppp_ioctl(&sc->sc_sp.pp_if, cmd, data);
|
||||
#else
|
||||
error = isppp_ioctl(&sc->sc_sp.pp_if, cmd, data);
|
||||
return isppp_ioctl(&sc->sc_sp.pp_if, cmd, data);
|
||||
#endif
|
||||
if (error)
|
||||
return error;
|
||||
|
||||
switch(cmd) {
|
||||
case SIOCSIFFLAGS:
|
||||
#if 0 /* never used ??? */
|
||||
x = splnet();
|
||||
if ((ifp->if_flags & IFF_UP) == 0)
|
||||
UNTIMEOUT(i4bisppp_timeout, (void *)sp, sc->sc_ch);
|
||||
splx(x);
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------*
|
||||
|
|
Loading…
Reference in New Issue