From: Marcos Paulo de Souza Date: Fri, 3 Aug 2018 00:27:52 +0000 (-0300) Subject: esx: Drop check for auth and auth->cb X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d16f4795efdcfa0337911b13e697f22e3c2efcaa;p=libvirt.git esx: Drop check for auth and auth->cb Since they are done inside virAuthGetPassword and virAuthGetUsername when needed. Signed-off-by: Marcos Paulo de Souza --- diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c index 03a84d7630..ef258a2ce2 100644 --- a/src/esx/esx_driver.c +++ b/src/esx/esx_driver.c @@ -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;