Author: araujo
Date: Tue Dec 17 01:37:02 2019
New Revision: 355839
URL: https://svnweb.freebsd.org/changeset/base/355839

Log:
  Forgotten to remove the previous if statement in commit r355838.
  
  MFC after:    1 month
  Differential Revision:        https://reviews.freebsd.org/D19400

Modified:
  head/lib/libvmmapi/vmmapi.c

Modified: head/lib/libvmmapi/vmmapi.c
==============================================================================
--- head/lib/libvmmapi/vmmapi.c Tue Dec 17 01:33:26 2019        (r355838)
+++ head/lib/libvmmapi/vmmapi.c Tue Dec 17 01:37:02 2019        (r355839)
@@ -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));
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to