kernel - Fix bogus compiler warning
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 18 Feb 2010 18:07:51 +0000 (10:07 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 18 Feb 2010 18:07:51 +0000 (10:07 -0800)
* NULL out an object to fix a bogus compiler warning.

sys/vm/vm_map.c

index e684370..0d82a27 100644 (file)
@@ -2766,6 +2766,7 @@ vm_map_split(vm_map_entry_t entry)
                break;
        default:
                /* not reached */
+               new_object = NULL;
                KKASSERT(0);
        }
        if (new_object == NULL)