Remove obsolete/bogus layering.

Reviewed by:	freebsd-current@, freebsd-hackers@
MFC after:	1 week
This commit is contained in:
emax 2009-04-09 18:22:51 +00:00
parent 72be4f0804
commit 33034a467e

View File

@ -173,7 +173,6 @@ static void scshutdown(void *arg, int howto);
static u_int scgetc(sc_softc_t *sc, u_int flags);
#define SCGETC_CN 1
#define SCGETC_NONBLOCK 2
static int sccngetch(int flags);
static void sccnupdate(scr_stat *scp);
static scr_stat *alloc_scp(sc_softc_t *sc, int vty);
static void init_scp(sc_softc_t *sc, int vty, scr_stat *scp);
@ -1532,12 +1531,6 @@ sc_cnputc(struct consdev *cd, int c)
static int
sc_cngetc(struct consdev *cd)
{
return sccngetch(SCGETC_NONBLOCK);
}
static int
sccngetch(int flags)
{
static struct fkeytab fkey;
static int fkeycp;
@ -1579,7 +1572,7 @@ sccngetch(int flags)
kbdd_ioctl(scp->sc->kbd, KDSKBMODE, (caddr_t)&scp->kbd_mode);
kbdd_poll(scp->sc->kbd, TRUE);
c = scgetc(scp->sc, SCGETC_CN | flags);
c = scgetc(scp->sc, SCGETC_CN | SCGETC_NONBLOCK);
kbdd_poll(scp->sc->kbd, FALSE);
scp->kbd_mode = cur_mode;