mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
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:
parent
847dc1fe88
commit
be9bd88238
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=129939
@ -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();
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user