3b2: Fix Coverity issues

This commit is contained in:
Seth Morabito 2022-03-17 16:04:43 -07:00
parent becceeb889
commit 6afef3fabf

View file

@ -791,7 +791,7 @@ static void ha_cmd(uint8 op, uint8 subdev, uint32 addr, int32 len, t_bool expres
int32 i, block; int32 i, block;
UNIT *uptr; UNIT *uptr;
SCSI_DEV *dev; SCSI_DEV *dev;
uint8 target; int8 target;
/* Immediately cancel any pending IRQs */ /* Immediately cancel any pending IRQs */
sim_cancel(cio_unit); sim_cancel(cio_unit);
@ -844,6 +844,7 @@ static void ha_cmd(uint8 op, uint8 subdev, uint32 addr, int32 len, t_bool expres
cio[ha_state.cid].sysgen_s = 0; cio[ha_state.cid].sysgen_s = 0;
ha_state.reply.status = CIO_SUCCESS; ha_state.reply.status = CIO_SUCCESS;
sim_activate_abs(cio_unit, 1200); sim_activate_abs(cio_unit, 1200);
break;
case CIO_DSD: case CIO_DSD:
sim_debug(HA_TRACE, &ha_dev, sim_debug(HA_TRACE, &ha_dev,
"[ha_cmd] SCSI DSD - %d CONFIGURED DEVICES (writing to addr %08x).\n", "[ha_cmd] SCSI DSD - %d CONFIGURED DEVICES (writing to addr %08x).\n",
@ -1372,7 +1373,7 @@ static void dump_edt()
uint32 offset; uint32 offset;
char name[10]; char name[11];
sim_debug(HA_TRACE, &ha_dev, sim_debug(HA_TRACE, &ha_dev,
"[EDT] Sanity: %08x\n", "[EDT] Sanity: %08x\n",