From 6f961bbe313117ae4c99cab151b4768d3c35aeea Mon Sep 17 00:00:00 2001 From: soren Date: Sat, 6 Nov 1999 06:20:53 +0000 Subject: [PATCH] It's okay for a memory region to be larger than it's alignment. --- sys/dev/cardbus/rbus.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/sys/dev/cardbus/rbus.c b/sys/dev/cardbus/rbus.c index c5366fd86fa4..4d7966fbd6e8 100644 --- a/sys/dev/cardbus/rbus.c +++ b/sys/dev/cardbus/rbus.c @@ -1,4 +1,4 @@ -/* $NetBSD: rbus.c,v 1.2 1999/10/15 06:42:22 haya Exp $ */ +/* $NetBSD: rbus.c,v 1.3 1999/11/06 06:20:53 soren Exp $ */ /* * Copyright (c) 1999 * HAYAKAWA Koichi. All rights reserved. @@ -99,10 +99,6 @@ rbus_space_alloc_subregion(rbt, substart, subend, addr, size, mask, align, flags DPRINTF(("rbus_space_alloc: addr %lx, size %lx, mask %lx, align %lx\n", addr, size, mask, align)); - if (size > align) { - return 1; /* ??? size should be smaller than align */ - } - addr += rbt->rb_offset; if (mask == 0) { @@ -110,10 +106,6 @@ rbus_space_alloc_subregion(rbt, substart, subend, addr, size, mask, align, flags decodesize = 0; } - if (size > align) { - return 1; /* ??? size should be smaller than align */ - } - if (rbt->rb_flags == RBUS_SPACE_ASK_PARENT) { return rbus_space_alloc(rbt->rb_parent, addr, size, mask, align, flags, addrp, bshp);