summaryrefslogtreecommitdiff
path: root/sys/dev/twe
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2004-02-22 01:03:38 +0000
committerColin Percival <cperciva@FreeBSD.org>2004-02-22 01:03:38 +0000
commit27021df2ff879d40002df59fb8a2246d0f6983df (patch)
tree732f3865bbfed99a149b95aa3b7a7c22b7387333 /sys/dev/twe
parente821c36489db884758cb8ba00dbaaa6bd4d6b2a1 (diff)
Notes
Diffstat (limited to 'sys/dev/twe')
-rw-r--r--sys/dev/twe/twe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/twe/twe.c b/sys/dev/twe/twe.c
index 32cc61d61623..787c49b708d1 100644
--- a/sys/dev/twe/twe.c
+++ b/sys/dev/twe/twe.c
@@ -273,7 +273,7 @@ twe_del_unit(struct twe_softc *sc, int unit)
{
int error;
- if (unit < 0 || unit > TWE_MAX_UNITS)
+ if (unit < 0 || unit >= TWE_MAX_UNITS)
return (ENXIO);
if (sc->twe_drive[unit].td_disk == NULL)