summaryrefslogtreecommitdiffstats
path: root/sys/dev/an
diff options
context:
space:
mode:
authorambrisko <ambrisko@FreeBSD.org>2003-01-30 15:01:17 +0000
committerambrisko <ambrisko@FreeBSD.org>2003-01-30 15:01:17 +0000
commit202e8cd9b5aafd44c1ae3079fcc5ddb9e7db8e4c (patch)
tree7a22b8cbc0e52ef039bbd1593c24b10364445fdb /sys/dev/an
parentb6af7801e26782a206a12fb1b8ef80a32c43e279 (diff)
downloadFreeBSD-src-202e8cd9b5aafd44c1ae3079fcc5ddb9e7db8e4c.zip
FreeBSD-src-202e8cd9b5aafd44c1ae3079fcc5ddb9e7db8e4c.tar.gz
Fix some style and incorrect indentation level bugs.
Questioned by: phk (for the indentation problem)
Diffstat (limited to 'sys/dev/an')
-rw-r--r--sys/dev/an/if_an.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/sys/dev/an/if_an.c b/sys/dev/an/if_an.c
index 70fb414..615a300 100644
--- a/sys/dev/an/if_an.c
+++ b/sys/dev/an/if_an.c
@@ -687,7 +687,7 @@ an_attach(sc, unit, flags)
/* Reset the NIC. */
an_reset(sc);
- if(sc->mpi350) {
+ if (sc->mpi350) {
error = an_init_mpi350_desc(sc);
if (error)
return(error);
@@ -1272,8 +1272,7 @@ an_cmd_struct(sc, cmd, reply)
for (i = 0; i != AN_TIMEOUT; i++) {
if (CSR_READ_2(sc, AN_COMMAND(sc->mpi350)) & AN_CMD_BUSY) {
DELAY(10);
- }
- else
+ } else
break;
}
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))
return(EIO);
- } else { /* MPI-350 */
+ } else {
+ /* MPI-350 */
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);
- }
- else
+ } else
break;
}
if (i == AN_TIMEOUT) {
@@ -1555,26 +1555,26 @@ an_write_record(sc, ltv)
((u_int32_t*)&an_rid_desc)[i]);
if ((i = an_cmd_struct(sc, &cmd, &reply))) {
- printf("an%d: failed to write RID %x %x %x %x %x, %d\n",
- sc->an_unit, ltv->an_type,
- reply.an_status,
- reply.an_resp0,
- reply.an_resp1,
- reply.an_resp2,
- i);
- return(EIO);
+ printf("an%d: failed to write RID %x %x %x %x %x, %d\n",
+ sc->an_unit, ltv->an_type,
+ reply.an_status,
+ reply.an_resp0,
+ reply.an_resp1,
+ reply.an_resp2,
+ i);
+ return(EIO);
}
ptr = (u_int16_t *)buf;
if (reply.an_status & AN_CMD_QUAL_MASK) {
printf("an%d: failed to write RID %x %x %x %x %x, %d\n",
- sc->an_unit, ltv->an_type,
- reply.an_status,
- reply.an_resp0,
- reply.an_resp1,
- reply.an_resp2,
- i);
+ sc->an_unit, ltv->an_type,
+ reply.an_status,
+ reply.an_resp0,
+ reply.an_resp1,
+ reply.an_resp2,
+ i);
return(EIO);
}
}
@@ -1980,11 +1980,11 @@ an_ioctl(ifp, command, data)
if (mode >= AIROGCAP && mode <= AIROGSTATSD32) {
error = readrids(ifp, &l_ioctl);
- }else if (mode >= AIROPCAP && mode <= AIROPLEAPUSR) {
+ } else if (mode >= AIROPCAP && mode <= AIROPLEAPUSR) {
error = writerids(ifp, &l_ioctl);
- }else if (mode >= AIROFLSHRST && mode <= AIRORESTART) {
+ } else if (mode >= AIROFLSHRST && mode <= AIRORESTART) {
error = flashcard(ifp, &l_ioctl);
- }else{
+ } else {
error =-1;
}
OpenPOWER on IntegriCloud