cvs commit: src/sys/dev/ata ata-all.c
Bjoern A. Zeeb
bz at FreeBSD.org
Sun Apr 20 17:45:32 UTC 2008
bz 2008-04-20 17:45:32 UTC
FreeBSD src repository
Modified files:
sys/dev/ata ata-all.c
Log:
devclass_get_maxunit() returns n+1 with n starting at 0.
So if we have channel 0..3 devclass_get_maxunit is 4.
It's never been a problem as devclass_get_device() has
catched a possibly bad input.
Discussed with: scottl
Revision Changes Path
1.287 +5 -4 src/sys/dev/ata/ata-all.c
More information about the cvs-src
mailing list