]> Zhao Yanbai Git Server - minix.git/commitdiff
vm: fix failed alloc condition
authorBen Gras <ben@minix3.org>
Wed, 19 Sep 2012 20:23:56 +0000 (22:23 +0200)
committerBen Gras <ben@minix3.org>
Wed, 19 Sep 2012 20:24:56 +0000 (22:24 +0200)
servers/vm/alloc.c

index d635247444ee398b10868740786f4d6a9ac7870e..8cefa9c1e1276dc57468ea2ac0727069b18d71b5 100644 (file)
@@ -392,14 +392,11 @@ struct memlist *alloc_mem_in_list(phys_bytes bytes, u32_t flags, phys_bytes know
                                if(mem == NO_MEM) {
                                        freed = free_yielded(rempages * VM_PAGE_SIZE);
                                }
-                               assert(mem != MAP_NONE);
                        } else {
                                mem = ABS2CLICK(phys_count);
                                phys_count += VM_PAGE_SIZE;
-                               assert(mem != MAP_NONE);
                                assert(mem != NO_MEM);
                        }
-                       assert(mem != MAP_NONE);
                } while(mem == NO_MEM && freed > 0);
 
                if(mem == NO_MEM) {