isys80xx, imds-225: Cleanup Coverity identified issues

This commit is contained in:
Bill Beech 2017-03-20 13:41:24 -07:00
parent f02a9b02f3
commit 0947a69a9e
2 changed files with 4 additions and 5 deletions

View file

@ -4660,8 +4660,8 @@ int32 fprint_sym (FILE *of, int32 addr, uint32 *val,
int32 parse_sym (char *cptr, int32 addr, UNIT *uptr, uint32 *val, int32 sw)
{
int32 cflag, i = 0, j, r;
char gbuf[CBUFSIZE];
int32 cflag, i = 0, j, r, fflag = 1;
char gbuf[256];
cflag = (uptr == NULL) || (uptr == &i8088_unit);
while (isspace (*cptr)) cptr++; /* absorb spaces */
@ -4721,9 +4721,9 @@ int32 parse_sym (char *cptr, int32 addr, UNIT *uptr, uint32 *val, int32 sw)
/* find opcode in table */
for (j = 0; j < 256; j++) {
if (strcmp(gbuf, opcode[j]) == 0)
break;
fflag = 0;
}
if (j > 255) /* not found */
if (fflag) /* not found */
return SCPE_ARG;
val[0] = j; /* store opcode */

View file

@ -379,7 +379,6 @@ DEVICE i8237_dev = {
t_stat i8237_svc(UNIT *uptr)
{
sim_printf("uptr=%08X\n", uptr);
sim_activate (&i8237_unit[uptr->u6], i8237_unit[uptr->u6].wait);
return SCPE_OK;
}