diff options
author | cg <cg@FreeBSD.org> | 2001-06-18 00:10:47 +0000 |
---|---|---|
committer | cg <cg@FreeBSD.org> | 2001-06-18 00:10:47 +0000 |
commit | c24cb000aaa5bbdd7e7f432f0e5b4b9b6630341b (patch) | |
tree | 46512e528b7c30d47016c9906c58ea1a881f196f /sys/dev/sound/pcm/sndstat.c | |
parent | 420f58376d042d11f15ba9760f51ad286889c0c1 (diff) | |
download | FreeBSD-src-c24cb000aaa5bbdd7e7f432f0e5b4b9b6630341b.zip FreeBSD-src-c24cb000aaa5bbdd7e7f432f0e5b4b9b6630341b.tar.gz |
use devclass_get_maxunit() correctly
Diffstat (limited to 'sys/dev/sound/pcm/sndstat.c')
-rw-r--r-- | sys/dev/sound/pcm/sndstat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/sndstat.c b/sys/dev/sound/pcm/sndstat.c index 25c71ed..a16c07e 100644 --- a/sys/dev/sound/pcm/sndstat.c +++ b/sys/dev/sound/pcm/sndstat.c @@ -140,7 +140,7 @@ sndstat_prepare(struct sbuf *s) } else sbuf_printf(s, "Installed devices:\n"); - for (i = 0; i <= devclass_get_maxunit(pcm_devclass); i++) { + for (i = 0; i < devclass_get_maxunit(pcm_devclass); i++) { d = devclass_get_softc(pcm_devclass, i); if (!d) continue; |