summaryrefslogtreecommitdiff
path: root/sys/dev/ips
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2022-02-26 17:35:51 +0000
committerScott Long <scottl@FreeBSD.org>2022-02-26 17:35:51 +0000
commitdec703c7e03a8a2cd90e5646156b372b2e5b539b (patch)
tree4f89d7f9474658074f4a0c32c5831423102f7a77 /sys/dev/ips
parentf94066c8aa35a27b00a9a6a132fcdcad9959177b (diff)
Diffstat (limited to 'sys/dev/ips')
-rw-r--r--sys/dev/ips/ips.c4
1 files changed, 1 insertions, 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;