]> xenbits.xensource.com Git - libvirt.git/commitdiff
esx: Drop check for auth and auth->cb
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>
Fri, 3 Aug 2018 00:27:52 +0000 (21:27 -0300)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 14 Aug 2018 14:08:45 +0000 (16:08 +0200)
Since they are done inside virAuthGetPassword and virAuthGetUsername
when needed.

Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
src/esx/esx_driver.c

index 03a84d76301296d1f570ba11f5405905406acd78..ef258a2ce2d17f94412ae068ec67620f395818d6 100644 (file)
@@ -854,13 +854,6 @@ esxConnectOpen(virConnectPtr conn, virConnectAuthPtr auth,
                  conn->uri->path, conn->uri->scheme);
     }
 
-    /* Require auth */
-    if (!auth || !auth->cb) {
-        virReportError(VIR_ERR_INVALID_ARG, "%s",
-                       _("Missing or invalid auth pointer"));
-        return VIR_DRV_OPEN_ERROR;
-    }
-
     /* Allocate per-connection private data */
     if (VIR_ALLOC(priv) < 0)
         goto cleanup;