From 2a63d939d3437f741da4f7ba5c27e9a284a6cb32 Mon Sep 17 00:00:00 2001 From: Bob Armstrong Date: Wed, 16 Mar 2022 10:56:21 -0700 Subject: [PATCH] H316: Coverity update - remove dead code; fix formatting --- H316/h316_hi.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/H316/h316_hi.c b/H316/h316_hi.c index 1e72a948..00c45191 100644 --- a/H316/h316_hi.c +++ b/H316/h316_hi.c @@ -243,7 +243,8 @@ void hi_get_dmc (uint16 dmc, uint16 *pnext, uint16 *plast, uint16 *pcount) { uint16 dmcad; if ((dmc(DMC1+DMC_MAX-1))) { - *pnext = *plast = *pcount = 0; return; + *pnext = *plast = *pcount = 0; + return; } dmcad = DMC_BASE + (dmc-DMC1)*2; *pnext = M[dmcad] & X_AMASK; *plast = M[dmcad+1] & X_AMASK; @@ -514,16 +515,17 @@ int32 hi_io (uint16 host, int32 inst, int32 fnc, int32 dat, int32 dev) case 000: // HnROUT - start regular host output ... hi_debug_hio(host, PDIB(host)->txdmc, "output"); - hi_start_tx(host, 0); return dat; + hi_start_tx(host, 0); + return dat; case 001: // HnIN - start host input ... hi_debug_hio(host, PDIB(host)->rxdmc, "input"); - hi_start_rx(host); return dat; + hi_start_rx(host); return dat; case 002: // HnFOUT - start final host output ... sim_debug(IMP_DBG_IOT, PDEVICE(host), "start final output (PC=%06o)\n", PC-1); - hi_start_tx(host, PFLG_FINAL); return dat; + hi_start_tx(host, PFLG_FINAL); return dat; case 003: // HnXP - cross patch ...