summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/geom_io.c')
-rw-r--r--sys/geom/geom_io.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c
index 3848f45..5e27f36 100644
--- a/sys/geom/geom_io.c
+++ b/sys/geom/geom_io.c
@@ -652,9 +652,8 @@ g_delete_data(struct g_consumer *cp, off_t offset, off_t length)
struct bio *bp;
int error;
- KASSERT(length > 0 && length >= cp->provider->sectorsize &&
- length <= MAXPHYS, ("g_delete_data(): invalid length %jd",
- (intmax_t)length));
+ KASSERT(length > 0 && length >= cp->provider->sectorsize,
+ ("g_delete_data(): invalid length %jd", (intmax_t)length));
bp = g_alloc_bio();
bp->bio_cmd = BIO_DELETE;
OpenPOWER on IntegriCloud