summaryrefslogtreecommitdiff
path: root/sys/kern/subr_devstat.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2001-02-04 16:08:18 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2001-02-04 16:08:18 +0000
commit37d400662666a604243e587c70d492fe357d150a (patch)
treef9bc9c6c4944d30981cf39fb66f61ea34fb86795 /sys/kern/subr_devstat.c
parentbcf77694d13313045a6a78477507a30ebd653894 (diff)
Notes
Diffstat (limited to 'sys/kern/subr_devstat.c')
-rw-r--r--sys/kern/subr_devstat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c
index 0d0942e99a3c..3c15b433a089 100644
--- a/sys/kern/subr_devstat.c
+++ b/sys/kern/subr_devstat.c
@@ -80,8 +80,7 @@ devstat_add_entry(struct devstat *ds, const char *dev_name,
if (devstat_num_devs == 1)
STAILQ_INSERT_TAIL(devstat_head, ds, dev_links);
else {
- for (ds_tmp = STAILQ_FIRST(devstat_head); ds_tmp != NULL;
- ds_tmp = STAILQ_NEXT(ds_tmp, dev_links)) {
+ STAILQ_FOREACH(ds_tmp, devstat_head, dev_links) {
struct devstat *ds_next;
ds_next = STAILQ_NEXT(ds_tmp, dev_links);