From e1d2f2de5d52face0a6a83df2a1384d011a8f835 Mon Sep 17 00:00:00 2001 From: reyk Date: Tue, 10 Jul 2018 21:12:20 +0000 Subject: [PATCH] style (single-line ifs don't need braces) --- usr.sbin/vmd/vmd.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/usr.sbin/vmd/vmd.c b/usr.sbin/vmd/vmd.c index 75df10fc466..ddd3cca8125 100644 --- a/usr.sbin/vmd/vmd.c +++ b/usr.sbin/vmd/vmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmd.c,v 1.89 2018/07/10 20:43:15 reyk Exp $ */ +/* $OpenBSD: vmd.c,v 1.90 2018/07/10 21:12:20 reyk Exp $ */ /* * Copyright (c) 2015 Reyk Floeter @@ -421,11 +421,10 @@ vmd_dispatch_vmm(int fd, struct privsep_proc *p, struct imsg *imsg) break; } if (vmr.vmr_result != EAGAIN) { - if (vm->vm_from_config) { + if (vm->vm_from_config) vm_stop(vm, 0, __func__); - } else { + else vm_remove(vm, __func__); - } } else { /* Stop VM instance but keep the tty open */ vm_stop(vm, 1, __func__); -- 2.20.1