There is no need to explicitly call the stop function. In all likelyhood

->l_close() did it and ttyclose certainly will.
This commit is contained in:
Poul-Henning Kamp 2004-06-01 11:57:15 +00:00
parent 847dc1fe88
commit be9bd88238
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129939
11 changed files with 0 additions and 13 deletions

View File

@ -795,7 +795,6 @@ sioclose(dev, flag, mode, td)
cd_etc(com, CD1400_ETC_STOPBREAK);
(*linesw[tp->t_line].l_close)(tp, flag);
disc_optim(tp, &tp->t_termios, com);
comstop(tp, FREAD | FWRITE);
comhardclose(com);
ttyclose(tp);
siosettimeout();

View File

@ -902,7 +902,6 @@ digiclose(dev_t dev, int flag, int mode, struct thread *td)
s = spltty();
linesw[tp->t_line].l_close(tp, flag);
digi_disc_optim(tp, &tp->t_termios, port);
digistop(tp, FREAD | FWRITE);
digihardclose(port);
ttyclose(tp);
if (--sc->opencnt == 0)

View File

@ -313,7 +313,6 @@ nmdmclose(dev_t dev, int flag, int mode, struct thread *td)
err = (*linesw[tp->t_line].l_close)(tp, flag);
ourpart->modemsignals &= ~TIOCM_DTR;
nmdm_crossover(dev->si_drv1, ourpart, otherpart);
nmdmstop(tp, FREAD|FWRITE);
(void) ttyclose(tp);
return (err);
}

View File

@ -962,7 +962,6 @@ rcclose(dev_t dev, int flag, int mode, d_thread_t *td)
s = spltty();
(*linesw[tp->t_line].l_close)(tp, flag);
disc_optim(tp, &tp->t_termios, rc);
rc_stop(tp, FREAD | FWRITE);
rc_hardclose(rc);
ttyclose(tp);
splx(s);

View File

@ -1132,7 +1132,6 @@ rpclose(dev, flag, mode, td)
oldspl = spltty();
(*linesw[tp->t_line].l_close)(tp, flag);
rp_disc_optim(tp, &tp->t_termios);
rpstop(tp, FREAD | FWRITE);
rphardclose(rp);
tp->t_state &= ~TS_BUSY;

View File

@ -806,8 +806,6 @@ siclose(dev_t dev, int flag, int mode, struct thread *td)
pp->sp_state &= ~SS_LSTART;
}
si_stop(tp, FREAD | FWRITE);
sihardclose(pp);
ttyclose(tp);
pp->sp_state &= ~SS_OPEN;

View File

@ -1385,7 +1385,6 @@ sioclose(dev, flag, mode, td)
s = spltty();
(*linesw[tp->t_line].l_close)(tp, flag);
disc_optim(tp, &tp->t_termios, com);
comstop(tp, FREAD | FWRITE);
comhardclose(com);
ttyclose(tp);
siosettimeout();

View File

@ -547,8 +547,6 @@ sxclose(
}
/* ok. we are now still on the right track.. nuke the hardware */
sx_stop(tp, FREAD | FWRITE);
sxhardclose(pp);
ttyclose(tp);
pp->sp_state &= ~SX_SS_OPEN;

View File

@ -208,7 +208,6 @@ ptsclose(dev, flag, mode, td)
tp = dev->si_tty;
err = (*linesw[tp->t_line].l_close)(tp, flag);
ptsstop(tp, FREAD|FWRITE);
(void) ttyclose(tp);
return (err);
}

View File

@ -2105,7 +2105,6 @@ sioclose(dev, flag, mode, td)
com->modem_checking = 0;
#endif
disc_optim(tp, &tp->t_termios, com);
comstop(tp, FREAD | FWRITE);
comhardclose(com);
ttyclose(tp);
siosettimeout();

View File

@ -2105,7 +2105,6 @@ sioclose(dev, flag, mode, td)
com->modem_checking = 0;
#endif
disc_optim(tp, &tp->t_termios, com);
comstop(tp, FREAD | FWRITE);
comhardclose(com);
ttyclose(tp);
siosettimeout();