From b779bfc1cdfcde3d1b17ba0976b9fcd211040e81 Mon Sep 17 00:00:00 2001 From: SpareTimeGizmos Date: Tue, 15 Mar 2022 08:35:47 -0700 Subject: [PATCH] H316: Fix missing initialization and remove dead code found by Coverity --- H316/h316_hi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/H316/h316_hi.c b/H316/h316_hi.c index a4aae1f3..1e72a948 100644 --- a/H316/h316_hi.c +++ b/H316/h316_hi.c @@ -395,7 +395,7 @@ void hi_poll_rx (uint16 line) // a packet is waiting AND a receive is pending then we'll store it and finish // the receive operation. If a packet is waiting but no receive is pending // then the packet is discarded... - uint16 next, last, maxbuf; uint16 *pdata; int16 count; + uint16 next, last, maxbuf; uint16 *pdata; int16 count=0; uint16 i; // If the modem isn't attached, then the read never completes! @@ -566,7 +566,6 @@ int32 hi_io (uint16 host, int32 inst, int32 fnc, int32 dat, int32 dev) // HnEOM - skip on end of message ... sim_debug(IMP_DBG_IOT, PDEVICE(host), "skip on end of message (PC=%06o %s)\n", PC-1, PHIDB(host)->eom ? "SKIP" : "NOSKIP"); return PHIDB(host)->eom ? IOSKIP(dat) : dat; - return dat; case 005: // HnFULL - skip on host buffer full ... sim_printf("HnFULL unimp.\n");