git: dec703c7e03a - main - Fix "set but not used" in the ips driver. Dead code.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 26 Feb 2022 17:36:11 UTC
The branch main has been updated by scottl:
URL: https://cgit.FreeBSD.org/src/commit/?id=dec703c7e03a8a2cd90e5646156b372b2e5b539b
commit dec703c7e03a8a2cd90e5646156b372b2e5b539b
Author: Scott Long <scottl@FreeBSD.org>
AuthorDate: 2022-02-26 17:35:51 +0000
Commit: Scott Long <scottl@FreeBSD.org>
CommitDate: 2022-02-26 17:35:51 +0000
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 63ca8a053555..a9bc8d7410e4 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;