kernel/slaballoc: Remove redundant if().
authorSascha Wildner <saw@online.de>
Sat, 4 Oct 2014 11:18:49 +0000 (13:18 +0200)
committerSascha Wildner <saw@online.de>
Sat, 4 Oct 2014 11:18:49 +0000 (13:18 +0200)
Found-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
sys/kern/kern_slaballoc.c

index eeb9bd0..f40db03 100644 (file)
@@ -616,8 +616,7 @@ kmalloc(unsigned long size, struct malloc_type *type, int flags)
      */
     if (type->ks_limit == 0) {
        crit_enter();
-       if (type->ks_limit == 0)
-           malloc_init(type);
+       malloc_init(type);
        crit_exit();
     }
     ++type->ks_calls;