bhyve: remove redundant variable
Reviewed by: corvink,markj Sponsored by: vStack Differential Revision: https://reviews.freebsd.org/D38836
This commit is contained in:
parent
e093c61b2d
commit
956171d5bc
@ -1236,7 +1236,7 @@ set_defaults(void)
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
int c, error, err;
|
||||
int c, error;
|
||||
int max_vcpus, memflags;
|
||||
struct vmctx *ctx;
|
||||
uint64_t rip;
|
||||
@ -1437,8 +1437,8 @@ main(int argc, char *argv[])
|
||||
if (get_config_bool_default("memory.guest_in_core", false))
|
||||
memflags |= VM_MEM_F_INCORE;
|
||||
vm_set_memflags(ctx, memflags);
|
||||
err = vm_setup_memory(ctx, memsize, VM_MMAP_ALL);
|
||||
if (err) {
|
||||
error = vm_setup_memory(ctx, memsize, VM_MMAP_ALL);
|
||||
if (error) {
|
||||
fprintf(stderr, "Unable to setup memory (%d)\n", errno);
|
||||
exit(4);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user