summaryrefslogtreecommitdiff
path: root/sys/dev/ata
diff options
context:
space:
mode:
authorskrll <skrll@NetBSD.org>2020-08-25 13:42:09 +0000
committerskrll <skrll@NetBSD.org>2020-08-25 13:42:09 +0000
commit88ccaac7c24201abf88bc79aeeab55c3d0ebb4ce (patch)
tree81d34e60623f2e069c7537230d9f0859c4fd5bc1 /sys/dev/ata
parente6443b8ea872851c825f64538c22d032b82aabe6 (diff)
KNF
Diffstat (limited to 'sys/dev/ata')
-rw-r--r--sys/dev/ata/ata_raid.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/ata/ata_raid.c b/sys/dev/ata/ata_raid.c
index c699ea55286..0da644648f8 100644
--- a/sys/dev/ata/ata_raid.c
+++ b/sys/dev/ata/ata_raid.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ata_raid.c,v 1.42 2019/04/26 11:51:56 pgoyette Exp $ */
+/* $NetBSD: ata_raid.c,v 1.43 2020/08/25 13:42:09 skrll Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ata_raid.c,v 1.42 2019/04/26 11:51:56 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ata_raid.c,v 1.43 2020/08/25 13:42:09 skrll Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -141,9 +141,9 @@ ata_raid_type_name(u_int type)
};
if (type < __arraycount(ata_raid_type_names))
- return (ata_raid_type_names[type]);
+ return ata_raid_type_names[type];
- return (NULL);
+ return NULL;
}
/*
@@ -176,7 +176,7 @@ ata_raid_finalize(device_t self)
ataraid_cd.cd_name);
out:
- return (1);
+ return 1;
}
/*
@@ -189,7 +189,7 @@ ataraid_match(device_t parent, cfdata_t cf, void *aux)
{
/* pseudo-device; always present */
- return (1);
+ return 1;
}
/*
@@ -233,7 +233,7 @@ ataraid_print(void *aux, const char *pnp)
if (pnp != NULL)
aprint_normal("block device at %s", pnp);
aprint_normal(" vendtype %d unit %d", aai->aai_type, aai->aai_arrayno);
- return (UNCONF);
+ return UNCONF;
}
/*
@@ -295,7 +295,7 @@ ata_raid_get_array_info(u_int type, u_int arrayno)
TAILQ_INSERT_TAIL(&ataraid_array_info_list, aai, aai_list);
out:
- return (aai);
+ return aai;
}
int
@@ -317,7 +317,7 @@ ata_raid_config_block_rw(struct vnode *vp, daddr_t blkno, void *tbuf,
error = biowait(bp);
putiobuf(bp);
- return (error);
+ return error;
}
MODULE(MODULE_CLASS_DRIVER, ataraid, NULL);