mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
Fix "set but not used" in the ips driver. Dead code.
This commit is contained in:
parent
f94066c8aa
commit
dec703c7e0
@ -642,15 +642,13 @@ static int ips_copperhead_queue_init(ips_softc_t *sc)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user