1
0
mirror of https://github.com/open-simh/simh.git synced 2026-05-05 15:43:58 +00:00

3b2: Coverity issue cleanup

This commit is contained in:
Seth Morabito
2017-11-30 16:30:53 +00:00
parent 0293d7f4af
commit 0a00d8066a
3 changed files with 9 additions and 2 deletions

View File

@@ -518,7 +518,7 @@ void iu_write(uint32 pa, uint32 val, size_t size)
if ((iu_port_a.stat & STS_FFL) == 0) {
iu_port_a.rxbuf[iu_port_a.w_p] = (uint8) val;
iu_port_a.w_p = (iu_port_a.w_p + 1) % IU_BUF_SIZE;
if (iu_port_a.w_p == iu_port_b.r_p) {
if (iu_port_a.w_p == iu_port_a.r_p) {
sim_debug(WRITE_MSG, &tto_a_dev,
">>> FIFO FULL ON LOOPBACK THRA! <<<");
iu_port_a.stat |= STS_FFL;