From: reyk Date: Tue, 10 Jul 2018 21:12:20 +0000 (+0000) Subject: style (single-line ifs don't need braces) X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e1d2f2de5d52face0a6a83df2a1384d011a8f835;p=openbsd style (single-line ifs don't need braces) --- 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__);