aboutsummaryrefslogtreecommitdiff
path: root/lib/libvmmapi/vmmapi.c
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2019-12-17 01:37:02 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2019-12-17 01:37:02 +0000
commitaf1e30f8bebcb633176fb3f251010a9e4ba57235 (patch)
treee6fa812c2218258309e11e6b5ba1a6d81072a7f3 /lib/libvmmapi/vmmapi.c
parenta71dc724e4e5be75f8d56f225a6f3c2062fa2307 (diff)
downloadsrc-af1e30f8bebcb633176fb3f251010a9e4ba57235.tar.gz
src-af1e30f8bebcb633176fb3f251010a9e4ba57235.zip
Forgotten to remove the previous if statement in commit r355838.
MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D19400
Notes
Notes: svn path=/head/; revision=355839
Diffstat (limited to 'lib/libvmmapi/vmmapi.c')
-rw-r--r--lib/libvmmapi/vmmapi.c6
1 files 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));
}