SCP: Allow detaching of buffered devices without a buffer (COVERITY)
This commit is contained in:
parent
c169b8dd79
commit
7eece3deb1
1 changed files with 1 additions and 1 deletions
2
scp.c
2
scp.c
|
@ -5812,7 +5812,7 @@ if (!(uptr->flags & UNIT_ATT)) { /* not attached? */
|
||||||
}
|
}
|
||||||
if ((dptr = find_dev_from_unit (uptr)) == NULL)
|
if ((dptr = find_dev_from_unit (uptr)) == NULL)
|
||||||
return SCPE_OK;
|
return SCPE_OK;
|
||||||
if (uptr->flags & UNIT_BUF) {
|
if ((uptr->flags & UNIT_BUF) && (uptr->filebuf)) {
|
||||||
uint32 cap = (uptr->hwmark + dptr->aincr - 1) / dptr->aincr;
|
uint32 cap = (uptr->hwmark + dptr->aincr - 1) / dptr->aincr;
|
||||||
if (uptr->hwmark && ((uptr->flags & UNIT_RO) == 0)) {
|
if (uptr->hwmark && ((uptr->flags & UNIT_RO) == 0)) {
|
||||||
if (!sim_quiet) {
|
if (!sim_quiet) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue