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
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user