AltairZ80: Fix Coverity detected issues in s100_tarbell.c

This commit is contained in:
Peter Schorn 2020-01-30 09:55:05 +01:00
parent 7116915937
commit 8198bac160

View file

@ -417,6 +417,10 @@ t_stat tarbell_attach(UNIT *uptr, CONST char *cptr)
}
}
if (i >= TARBELL_MAX_DRIVES) {
return SCPE_ARG;
}
/* Default for new file is DSK */
uptr->u3 = IMAGE_TYPE_DSK;
@ -614,8 +618,6 @@ static uint8 TARBELL_Read(uint32 Addr)
TARBELL_HeadLoad(uptr, pFD1771, TRUE);
}
else if (pFD1771->readTrkActive) {
cData = 0xe5;
/* If we reached the end of the track data, terminate command and set INTRQ */
if (pFD1771->trkCount == TARBELL_BYTES_PER_TRACK) {
pFD1771->readTrkActive = FALSE;