Fix some style and incorrect indentation level bugs.
Questioned by: phk (for the indentation problem)
This commit is contained in:
parent
7656b3500d
commit
0738490650
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110104
@ -687,7 +687,7 @@ an_attach(sc, unit, flags)
|
|||||||
|
|
||||||
/* Reset the NIC. */
|
/* Reset the NIC. */
|
||||||
an_reset(sc);
|
an_reset(sc);
|
||||||
if(sc->mpi350) {
|
if (sc->mpi350) {
|
||||||
error = an_init_mpi350_desc(sc);
|
error = an_init_mpi350_desc(sc);
|
||||||
if (error)
|
if (error)
|
||||||
return(error);
|
return(error);
|
||||||
@ -1272,8 +1272,7 @@ an_cmd_struct(sc, cmd, reply)
|
|||||||
for (i = 0; i != AN_TIMEOUT; i++) {
|
for (i = 0; i != AN_TIMEOUT; i++) {
|
||||||
if (CSR_READ_2(sc, AN_COMMAND(sc->mpi350)) & AN_CMD_BUSY) {
|
if (CSR_READ_2(sc, AN_COMMAND(sc->mpi350)) & AN_CMD_BUSY) {
|
||||||
DELAY(10);
|
DELAY(10);
|
||||||
}
|
} else
|
||||||
else
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if( i == AN_TIMEOUT) {
|
if( i == AN_TIMEOUT) {
|
||||||
@ -1524,13 +1523,14 @@ an_write_record(sc, ltv)
|
|||||||
|
|
||||||
if (an_cmd(sc, AN_CMD_ACCESS|AN_ACCESS_WRITE, ltv->an_type))
|
if (an_cmd(sc, AN_CMD_ACCESS|AN_ACCESS_WRITE, ltv->an_type))
|
||||||
return(EIO);
|
return(EIO);
|
||||||
} else { /* MPI-350 */
|
} else {
|
||||||
|
/* MPI-350 */
|
||||||
|
|
||||||
for (i = 0; i != AN_TIMEOUT; i++) {
|
for (i = 0; i != AN_TIMEOUT; i++) {
|
||||||
if (CSR_READ_2(sc, AN_COMMAND(sc->mpi350)) & AN_CMD_BUSY) {
|
if (CSR_READ_2(sc, AN_COMMAND(sc->mpi350))
|
||||||
|
& AN_CMD_BUSY) {
|
||||||
DELAY(10);
|
DELAY(10);
|
||||||
}
|
} else
|
||||||
else
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (i == AN_TIMEOUT) {
|
if (i == AN_TIMEOUT) {
|
||||||
@ -1980,11 +1980,11 @@ an_ioctl(ifp, command, data)
|
|||||||
|
|
||||||
if (mode >= AIROGCAP && mode <= AIROGSTATSD32) {
|
if (mode >= AIROGCAP && mode <= AIROGSTATSD32) {
|
||||||
error = readrids(ifp, &l_ioctl);
|
error = readrids(ifp, &l_ioctl);
|
||||||
}else if (mode >= AIROPCAP && mode <= AIROPLEAPUSR) {
|
} else if (mode >= AIROPCAP && mode <= AIROPLEAPUSR) {
|
||||||
error = writerids(ifp, &l_ioctl);
|
error = writerids(ifp, &l_ioctl);
|
||||||
}else if (mode >= AIROFLSHRST && mode <= AIRORESTART) {
|
} else if (mode >= AIROFLSHRST && mode <= AIRORESTART) {
|
||||||
error = flashcard(ifp, &l_ioctl);
|
error = flashcard(ifp, &l_ioctl);
|
||||||
}else{
|
} else {
|
||||||
error =-1;
|
error =-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user