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

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

index 6bc4c099e2eeb2bbc313eab8d955eea9c1ce5fe1..7ca145aef5c92cff3c8181572289a9bdee1f400f 100644 (file)
@@ -128,13 +128,6 @@ hypervConnectOpen(virConnectPtr conn, virConnectAuthPtr auth,
 
     virCheckFlags(VIR_CONNECT_RO, VIR_DRV_OPEN_ERROR);
 
-    /* Require auth */
-    if (auth == NULL || auth->cb == NULL) {
-        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;