isys80xx, imds-225: Cleanup Coverity identified issues
This commit is contained in:
parent
f02a9b02f3
commit
0947a69a9e
2 changed files with 4 additions and 5 deletions
|
@ -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 parse_sym (char *cptr, int32 addr, UNIT *uptr, uint32 *val, int32 sw)
|
||||||
{
|
{
|
||||||
int32 cflag, i = 0, j, r;
|
int32 cflag, i = 0, j, r, fflag = 1;
|
||||||
char gbuf[CBUFSIZE];
|
char gbuf[256];
|
||||||
|
|
||||||
cflag = (uptr == NULL) || (uptr == &i8088_unit);
|
cflag = (uptr == NULL) || (uptr == &i8088_unit);
|
||||||
while (isspace (*cptr)) cptr++; /* absorb spaces */
|
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 */
|
/* find opcode in table */
|
||||||
for (j = 0; j < 256; j++) {
|
for (j = 0; j < 256; j++) {
|
||||||
if (strcmp(gbuf, opcode[j]) == 0)
|
if (strcmp(gbuf, opcode[j]) == 0)
|
||||||
break;
|
fflag = 0;
|
||||||
}
|
}
|
||||||
if (j > 255) /* not found */
|
if (fflag) /* not found */
|
||||||
return SCPE_ARG;
|
return SCPE_ARG;
|
||||||
|
|
||||||
val[0] = j; /* store opcode */
|
val[0] = j; /* store opcode */
|
||||||
|
|
|
@ -379,7 +379,6 @@ DEVICE i8237_dev = {
|
||||||
|
|
||||||
t_stat i8237_svc(UNIT *uptr)
|
t_stat i8237_svc(UNIT *uptr)
|
||||||
{
|
{
|
||||||
sim_printf("uptr=%08X\n", uptr);
|
|
||||||
sim_activate (&i8237_unit[uptr->u6], i8237_unit[uptr->u6].wait);
|
sim_activate (&i8237_unit[uptr->u6], i8237_unit[uptr->u6].wait);
|
||||||
return SCPE_OK;
|
return SCPE_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue