From dec703c7e03a8a2cd90e5646156b372b2e5b539b Mon Sep 17 00:00:00 2001 From: Scott Long Date: Sat, 26 Feb 2022 10:35:51 -0700 Subject: [PATCH] Fix "set but not used" in the ips driver. Dead code. --- sys/dev/ips/ips.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/ips/ips.c b/sys/dev/ips/ips.c index 63ca8a05355..a9bc8d7410e 100644 --- a/sys/dev/ips/ips.c +++ b/sys/dev/ips/ips.c @@ -642,15 +642,13 @@ exit: int ips_copperhead_reinit(ips_softc_t *sc, int force) { int i, j; - u_int32_t postcode = 0, configstatus = 0; + u_int32_t configstatus = 0; ips_write_1(sc, COPPER_REG_SCPR, 0x80); ips_write_1(sc, COPPER_REG_SCPR, 0); device_printf(sc->dev, "reinitializing adapter, this could take several minutes.\n"); for(j = 0; j < 2; j++){ - postcode <<= 8; for(i = 0; i < 45; i++){ if(ips_read_1(sc, COPPER_REG_HISR) & COPPER_GHI_BIT){ - postcode |= ips_read_1(sc, COPPER_REG_ISPR); ips_write_1(sc, COPPER_REG_HISR, COPPER_GHI_BIT); break;