From af1e30f8bebcb633176fb3f251010a9e4ba57235 Mon Sep 17 00:00:00 2001 From: Marcelo Araujo Date: Tue, 17 Dec 2019 01:37:02 +0000 Subject: [PATCH] Forgotten to remove the previous if statement in commit r355838. MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D19400 --- lib/libvmmapi/vmmapi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/libvmmapi/vmmapi.c b/lib/libvmmapi/vmmapi.c index 6f5062545e41..00b35f1022e9 100644 --- a/lib/libvmmapi/vmmapi.c +++ b/lib/libvmmapi/vmmapi.c @@ -106,10 +106,8 @@ int vm_create(const char *name) { /* Try to load vmm(4) module before creating a guest. */ - if (modfind("vmm") < 0) { - if (modfind("vmm") < 0) - kldload("vmm"); - } + if (modfind("vmm") < 0) + kldload("vmm"); return (CREATE((char *)name)); }